Hi I have mounted my QNAP on to a drive on my ubuntu machine using the following fstab entry
//<ip-address>/Documents/Aly /home/aly/Documents cifs credentials=/root/.credentials,uid=1000,gid=1000,rw,hard,dir_mode=0777,file_mode=0777 0 0
this gives the following permisssions:
drwxrwxrwx 1 aly aly 0 2011-12-03 12:18 .
drwxr-xr-x 13 aly aly 4096 2011-12-03 12:14 ..
-rwxrwxrwx 1 aly aly 5 2011-12-03 11:55 test.tst
drwxrwxrwx 1 aly aly 0 2011-11-26 17:54 VirtualBox VMs
I have permissions to delete files and add files, however when trying to write to a file i.e. test.tst I get the following error in vi:
"test.tst" E212: Can't open file for writing
Has anyone seen this before, if i mount the drive via nfs this is not an issue, however nfs lacks the security i desire.
EDIT
The solution I have come to is:
<ip-address>:Documents/Aly/ /home/aly/Documents cifs hard,noperm,nouid,credentials=/root/.credentials,iocharset=utf8,file_mode=0777,dir_mode=0777,nodfs 0 0
mount
show?