Public bug reported:

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/[EMAIL PROTECTED]:/tmp$ sudo mount -t cifs -o 
credentials=/etc/samba/phys-robertjo-creds,uid=rj,gid=rj //winhome/robertjo 
test/
[53/[EMAIL PROTECTED]:/tmp$ cd test
[55/[EMAIL PROTECTED]:/tmp/test$ mkdir a
[56/[EMAIL PROTECTED]:/tmp/test$ mkdir a/b
[57/[EMAIL PROTECTED]:/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/[EMAIL PROTECTED]:/tmp/test$ rm -r a
[59/[EMAIL PROTECTED]:/tmp/test$ mkdir -p a/b
mkdir: cannot create directory `a/b': Permission denied
[60/[EMAIL PROTECTED]:/tmp/test$ ls -ld a
drwxr-xr-x 2 rj rj 0 2008-04-25 15:17 a/
[61/[EMAIL PROTECTED]:/tmp/test$ mkdir a/b
[62/[EMAIL PROTECTED]:/tmp/test$ ls -ld a/b
drwxr-xr-x 2 rj rj 0 2008-04-25 15:17 a/b/
[63/[EMAIL PROTECTED]:/tmp/test$ rm -r a
[64/[EMAIL PROTECTED]:/tmp/test$ mkdir a; mkdir a/b
mkdir: cannot create directory `a/b': Permission denied
[65/[EMAIL PROTECTED]:/tmp/test$ rm -r a
[66/[EMAIL PROTECTED]:/tmp/test$ mkdir a; sleep 1; mkdir a/b
[67/[EMAIL PROTECTED]:/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/[EMAIL PROTECTED]:/tmp/test$ rm -r a
[69/[EMAIL PROTECTED]:/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/[EMAIL PROTECTED]:/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

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Changed in: linux (Ubuntu)
Sourcepackagename: samba => linux

** Summary changed:

- linux-image-2.6.24-16-generic
+ cifs mount options "uid,gid" broken

-- 
cifs mount options "uid,gid" broken
https://bugs.launchpad.net/bugs/221887
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

Reply via email to