2011/9/4 Fabrice <[email protected]>: > Now, I want to *mount the folder in my user home directory.* I am not using > Dophin anymore, I do everything from the terminal. > > $ sudo mount -t cifs //127.0.0.1/public/Pictures /home/myuser/Pictures/ > $ cd Pictures/ > $ touch test-konsole.txt > touch: cannot touch `test-konsole.txt': Permission denied > > *But the file is created anyway*... with the incorrect permissions > (rwxr-xr-x instead of rwxrwxr-x) > > -rwxr-xr-x 1 nobody nobody 0 Aug 28 19:01 test-konsole.txt > > So what am I missing here ? Could it be related to this problem ?
Unlike NFS, you have to notice that permission of the mounted directory is not inherited from those of the mouting directory's but is set with dir_mode and file_mode option because CIFS can not treat "permission" basically. Try: $ sudo mount -t cifs -o rw,noperm //127.0.0.1/public/Pictures /home/myuser/Pictures/ OR $ sudo mount -t cifs -o rw,file_mode=0666,dir_mode=0777 //127.0.0.1/public/Pictures /home/myuser/Pictures/ -- TAKAHASHI Motonobu <[email protected]> -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
