cifs mount options "uid,gid" broken

Bug #221887 reported by Robert Jordens
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
jcifs (Ubuntu)
Invalid
Undecided
Unassigned
linux (Ubuntu)
Fix Released
High
Unassigned
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: smbfs

If a cifs share is mounted with uid=bla specified, that forced mapping is inactive for a short time after the creation of a new directory. I did not find any upstream bug that describes the same problem.
The following transcript shows the situation. Reproducible on any share (windows server, xp or samba).

[52/4940]rj@frazzle:/tmp$ sudo mount -t cifs -o credentials=/etc/samba/phys-robertjo-creds,uid=rj,gid=rj //winhome/robertjo test/
[53/4941]rj@frazzle:/tmp$ cd test
[55/4943]rj@frazzle:/tmp/test$ mkdir a
[56/4944]rj@frazzle:/tmp/test$ mkdir a/b
[57/4945]rj@frazzle:/tmp/test$ ls -ld a a/b
drwxr-xr-x 3 rj rj 0 2008-04-25 15:16 a/
drwxr-xr-x 2 rj rj 0 2008-04-25 15:16 a/b/
[58/4946]rj@frazzle:/tmp/test$ rm -r a
[59/4947]rj@frazzle:/tmp/test$ mkdir -p a/b
mkdir: cannot create directory `a/b': Permission denied
[60/4948]rj@frazzle:/tmp/test$ ls -ld a
drwxr-xr-x 2 rj rj 0 2008-04-25 15:17 a/
[61/4949]rj@frazzle:/tmp/test$ mkdir a/b
[62/4950]rj@frazzle:/tmp/test$ ls -ld a/b
drwxr-xr-x 2 rj rj 0 2008-04-25 15:17 a/b/
[63/4951]rj@frazzle:/tmp/test$ rm -r a
[64/4952]rj@frazzle:/tmp/test$ mkdir a; mkdir a/b
mkdir: cannot create directory `a/b': Permission denied
[65/4953]rj@frazzle:/tmp/test$ rm -r a
[66/4954]rj@frazzle:/tmp/test$ mkdir a; sleep 1; mkdir a/b
[67/4955]rj@frazzle:/tmp/test$ ls -ld a a/b
drwxr-xr-x 3 rj rj 0 2008-04-25 15:17 a/
drwxr-xr-x 2 rj rj 0 2008-04-25 15:17 a/b/
[68/4956]rj@frazzle:/tmp/test$ rm -r a
[69/4957]rj@frazzle:/tmp/test$ mkdir a; ls -ld a; sleep 1; ls -ld a
drwxr-xr-x 2 3008 1019 0 2008-04-25 15:17 a/
drwxr-xr-x 2 rj rj 0 2008-04-25 15:17 a/
[70/4958]rj@frazzle:/tmp/test$ rm -r a

(3008/1019 are the uid/gid on the samba server)

Workaround:
   use noperm as a mount option. but that opens up the mount to everyone locally.

Description: Ubuntu 8.04
Release: 8.04
smbfs:
  Installed: 3.0.28a-1ubuntu4
  Candidate: 3.0.28a-1ubuntu4
  Version table:
 *** 3.0.28a-1ubuntu4 0
        500 http://ch.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Robert Jordens (jordens) wrote :

This bug still applies (2.6.27-7-generic)

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → High
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
kernel-janitor (kernel-janitor) wrote :

This bug report was marked as Triaged a while ago but has not had any updated comments for quite some time. Please let us know if this issue remains in the current Ubuntu release, http://www.ubuntu.com/getubuntu/download . If the issue remains, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-triage
Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Robert Jordens (jordens) wrote :

still persists in jaunty 2.6.28-13-generic

Changed in linux (Ubuntu):
status: Incomplete → New
Changed in linux (Ubuntu):
status: New → Triaged
Revision history for this message
Alex Sidorenko (asid) wrote :

This seems to be similar to

http://patchwork.kernel.org/patch/9046/

Ubuntu/Karmic kernel (2.6.31) has completely redesigned cifs/inode.c and the problem has disappeared

Alex

Fail2Ban (failtoban)
tags: added: kernel-bug verification-needed
Revision history for this message
Robert Jordens (jordens) wrote :

The problem does not appear anymore in karmic and lucid.

Revision history for this message
Mitch Towner (kermiac) wrote :

Invalidating wrongly set bug tasks & cleaning up tags.

@ Fail2Ban: Please do not add new tasks to bug reports or add tags without commenting to advise why you have done this.
Thanks in advance!

Changed in samba (Ubuntu):
status: New → Invalid
Changed in jcifs (Ubuntu):
status: New → Invalid
tags: removed: kernel-bug verification-needed
Changed in linux (Ubuntu):
status: Triaged → Fix Released
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.