various access right issues with cifs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: smbfs
I have been testing cifs due to current smb issues with large files (see bug #38886) and I have stumbled across a number strange behaviors. Most of them are related to access right issues.
I am using Ubuntu 6.10 (edgy), kernel 2.6.17-10-generic, and samba 3.0.22.
I mounted a Western Digital Netcenter NAS drive (which for testing purpose has been set to allow anyone to do anything) using the following command:
sudo mount -t cifs "//wd-netcenter
I used this command for the mount as there are problems with uid/gid (see for example #48418).
Now if it try to copy small files it works fine but as soon as I try bigger files (anything that takes more than 5 seconds to copy) I get:
Error "Access denied" while copying XYZ
Also if I try to touch a file (on the mounted drive) I get the following error:
touch: setting times of `toto': Permission denied
But still the funny thing is that the file still gets created!!
Now, if I do the same command with sudo then the 'touch' works fine and with no errors.
Lastly, when I do a 'ls -l' all the files on the NAS shows with uid=35000 and gid=42000 so I suspect it is probably related but that's why I used 'file_mode=
uid/gid thing is fixed in feisty and i can't reproduce your problem in gutsy and feisty..
Did you maybe upgrade Edgy to Feisty and did the status of the problem changed?