Merge pull request #326 from resin-io/doc/eaccess-login

Document the case where EACCES is thrown during login
This commit is contained in:
Juan Cruz Viotti 2016-03-09 11:04:17 -04:00
commit 85561b5d50

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
```