Description of the issue
Insync may sometimes fail to download files or folders from Drive with the error message "Can't process [file/folder name] - Permission denied".
These errors are most commonly due to Insync not having write permissions to the syncing location.
Verifying the cause of the issue
You can verify whether that is the cause by going to the containing folder in your file manager and checking its permissions. In Ubuntu 16.10 using Files it looks like the following:
Alternatively you can open a terminal and run the command
ls -ld /path/to/containing/folder.
In this example, the user ubuntu only has read-only permissions.
Steps to add read & write permissions to a folder
In the example above the only permitted users are the owner and the members of the group
staff. To add permissions to the ubuntu user there are three main ways. You can:
- change the owner of the folder
- add ubuntu to the
- change the permissions on the folder
We'll be looking at each option below.
Change the owner of the folder
1. To change the owner of the folder run
sudo chown -R <username> /path/to/containing/folder. This command will also change the ownership of the files under the folder.
Add ubuntu to the
1. You can add your user to the group that has write permissions on the folder by running
sudo usermod -a -G <group_name> <username>.
2. Your user will be added to the group when you relogin. You can check if the command has succeeded before logging out by running
sudo su -l <username> then running
groups again to check the groups your user is a member of.
3. Log out then log back in to make the change in group membership take effect.
Change the permssions on the folder
1. To change the permissions on the folder run
sudo chmod -R o+rw /path/to/containing/folder. This command will also change the permissions on the files under the folder.
After performing any of the above options go back to the Insync window and either click "Retry" on each of the errors or just click "Retry all".