various access right issues with cifs

Bug #74427 reported by Gilles
4
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/Shared Files" nas -o guest,file_mode=0777,dir_mode=0777

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=0777,dir_mode=0777' in the mount command (I would have prefered to force the uid/gid to be set but as indicated ealier this does not seem to work very well either).

Revision history for this message
Ante Karamatić (ivoks) wrote :

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?

Changed in samba:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Chuck Short (zulcss) wrote :

This should be closed now.

chuck

Changed in samba:
status: Triaged → Fix Released
Revision history for this message
Gilles (ubuntugc1) wrote :

Yes, I now moved to 7.10 and I can't reproduce the problem either. So I am going to close it...

Revision history for this message
Gilles (ubuntugc1) wrote :

Ok, that's going to seem silly but I apparently I don't seem to have the rights to close it (at least I can't find the command anywhere) so it seems some admin will have to close it for me.

Thanks.

Gilles.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.