I'm new in linux so forgive me if I make obvious mistakes. I'm trying to figure out how to get my laptop synced with my (Synology) NAS.
I have installed FreeFileSync. It works perfect between folders on my laptop and from NAS to laptop.
I have mounted my shared folder with following line in /etc/fstab
//192.168.10.111/Shared /media/shared cifs username=XXX,password=YYY,domain=WORKGROUP,rw,uid=1000,gid=1000 0 0
I've uses several mounting options, as with or without umask=0222,file_mode=0777,dir_mode=0777
If followed the instructions as described here.
I've tried with
sudo chown kasper:kasper /media/shared
sudo chmod 777
sudo chmod -R 777 /media/shared
BUT in all cases I get the following error code in FreeFileSync for the files to be transfered to the NAS:
errorcode 13: Permission denied [chown]
When I do it manually (copy/paste files and folders to mounted folder) everything works fine. It seems that FreeFileSync does not have the correct permissions, but I don't find a way to change it. I hope somebody can help me out. It took me a lot of hours already without any difference.
Thank you in advance.
touch /media/shared/somefile
works from terminal? – N0rbert Jan 10 '18 at 12:20touch
is often used for creation of new empty file. If user has write permission to some directory, it creates file. – N0rbert Jan 10 '18 at 14:59id
(only number) your/media/shared
users have? – N0rbert Jan 10 '18 at 15:04