Bug 6282 - Incorrect behaviour mount.cifs on AUFS.
Incorrect behaviour mount.cifs on AUFS.
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools
3.0.34
Other Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-21 06:33 UTC by Stepanov Andriy
Modified: 2009-04-21 06:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stepanov Andriy 2009-04-21 06:33:27 UTC
$ rpm -q samba-client
samba-client-3.0.33-alt3

$ which smbmount
/usr/bin/smbmount

$ which cifsmount
/usr/bin/cifsmount

$ l /usr/bin/smbmount
lrwxrwxrwx 1 root root 22 Apr  7 12:09 /usr/bin/smbmount -> ../../sbin/mount.smbfs

$ l /usr/bin/cifsmount
lrwxrwxrwx 1 root root 21 Apr  7 12:09 /usr/bin/cifsmount -> ../../sbin/mount.cifs

$ l /sbin/mount.smbfs
-rwxr-xr-x 1 root root 909700 Mar 31 00:23 /sbin/mount.smbfs

$ l /sbin/mount.cifs
-rws--x--x 1 root root 30756 Mar 31 00:23 /sbin/mount.cifs

$ pwd 
/home/stanv

$ mkdir test

$ l | grep test
drwxr-xr-x  2 stanv stanv     40 Apr 20 15:22 test/

$ smbmount //umka.malta.altlinux.ru/srv /home/stanv/test/
Password: 

l | grep test
drwxr-xr-x  1 stanv stanv   4096 Apr 20 15:23 test/

$ touch /home/stanv/test/for_stanv/NEW_FILE

$ l /home/stanv/test/for_stanv/NEW_FILE
-rwxr-xr-x 1 stanv stanv 0 Apr 20 15:23 /home/stanv/test/for_stanv/NEW_FILE

Now, same for cifsmount:

$ smbumount /home/stanv/test 
$ cifsmount //umka.malta.altlinux.ru/srv /home/stanv/test/
Password: 
$ l | grep test
drwxr-xr-x  4 root  root       0 Mar 17 12:50 test/
$ touch /home/stanv/test/for_stanv/NEW_FILE2
touch: cannot touch `/home/stanv/test/for_stanv/NEW_FILE2': Permission denied

This behaviour only reproduced on AUFS:
$ cat /proc/mounts | grep -e home
/mnt/root/home /home aufs rw,si=60de192c,xino=/mnt/root/home/.aufs.xino,br:/mnt/root/home=rw:/home=ro 0 0

Maybe this bug related only to AUFS, not Samba.