Hello, I already tried one of your suggestion before as part of my testing.
When I mount the directory with the command line below, the behavior I described earlier does not change : I got a "Permission denied" and the file is created anyway. *$ sudo mount -t cifs -o rw,file_mode=0666,dir_mode=0777 // 127.0.0.1/public/Pictures /home/myuser/Pictures/* $ cd Pictures/ *$ touch test3.txt touch: cannot touch `test3.txt': Permission denied $ ls -lrat -rwxr-xr-x 1 nobody nobody 0 Sep 4 11:02 test3.txt* However, there is an improvement with your other suggestion. The file permissions are still incorrect, but at least, I do not not have the " Permission denied" anymore *$ sudo mount -t cifs -o rw,noperm //127.0.0.1/public/Pictures/home/myuser/Pictures/ $ cd Pictures/ $ touch test.txt $ ls -lrat **-rwxr-xr-x 1 nobody nobody 0 Sep 4 10:55 test.txt* What puzzles me are the 2 different behaviors when I access the share directly with my file explorer (Dolphin) and when I do it through a mounted directory. Everything works as it should in the first case. So it would led me to assume that my basic setup is correct and that the problem lies with cifs. On Sun, Sep 4, 2011 at 04:24, TAKAHASHI Motonobu <[email protected]> wrote: > 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
