Revised reproduction steps assuming a username of BARNEY:
1. Set up a Samba share
mkdir ~/sharedfolder
net usershare add sharedfolder ~/sharedfolder '' Everyone:F
2. Create a folder in the share with some files in it
mkdir ~/sharedfolder/newfolder
touch ~/sharedfolder/newfolder/foo.txt
3. Reduce the permissions of the folder
chmod 0700 ~/sharedfolder/newfolder
sudo chown root ~/sharedfolder/newfolder
4. Make an entry in /etc/fstab
//localhost/sharedfolder /home/BARNEY/mountpoint cifs rw,user,noauto 0 0
5. Mount the share with the cifs driver
mkdir ~/mountpoint
mount ~/mountpoint
6. Browse to the folder
nautilus ~/mountpoint/newfolder
Notice that all files and folders under ~/mountpoint have incorrect
ownership of BARNEY:BARNEY.
If we replace steps 4 and 5 above:
4. SKIP: Do not make an entry in /etc/fstab
5. Mount the share with the cifs driver
mkdir ~/mountpoint
sudo mount -t cifs //localhost/sharedfolder ~/mountpoint -o user=BARNEY
Then all files and folders have the correct ownership and Nautilus works
as expected. Why is there a difference between these two mounting
methods?
--
Nautilus does not notify about permissions errors over samba shares
https://bugs.launchpad.net/bugs/252929
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs