Document the case where EACCES is thrown during login

This commit is contained in:
Juan Cruz Viotti 2016-03-09 11:03:09 -04:00
parent 7df78a0c9e
commit 88c0833ae2

View File

@ -47,3 +47,13 @@ Or in Windows:
```sh
> del /s /q %UserProfile%\_resin\cache
```
### I get `EACCES: permission denied` when logging in
The Resin CLI stores the session token in `$HOME/.resin` or `C:\Users\<user>\_resin` in UNIX based operating systems and Windows respectively. This error usually indicates that the user doesn't have permissions over that directory, which can happen if you ran the Resin CLI as `root`, and thus the directory got owned by him.
Try resetting the ownership by running:
```sh
$ sudo chown -R <user> $HOME/.resin
```