[Samba] Bug? Avoiding options in subdirectories

Jaume Catarineu jaume.catarineu at upf.edu
Sat Jun 5 03:07:04 GMT 2004


I've installed Fedora Core 2 (smb 3.0.4) into my server. Exporting with 
SMB my directories (as I allways did), now I found problems in the 
client side.

The client is Mandrake 10, and the problem is that EVEN is mount the 
shared directories with the UID and GID options, it only seems to make 
effect in the root directory, not into the subdirectories mounted. They 
are owned by the server-user that owns the server-filesystem I'm 
exporting with SMB (in this case is user 99, "nobody" in the server 

So, in the SERVER SIDE I have the following filesystem :

   (looking at /)
   drwxrwxrwx   5 nobody nobody    152 Jun  2 09:53 shared_55

   (looking at /shared_55)
   drwxr-xr-x   7 nobody nobody    200 Mar 29 21:52 vmwares

The "smb.conf" is:

         workgroup = XCASA
         server string = Linux Sambero
         interfaces =
         security = SHARE
         log file = /var/log/samba/%m.log
         max log size = 50
         socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
         dns proxy = No
         wins support = Yes
         ldap ssl = no
         preload = shared shared_100 shared_55
         default service = shared
         character set = ISO8859-1
         hosts allow = 192.168.0.
         hosts deny = ALL

         path = /shared_55
         read only = No
         guest ok = Yes
         guest only = Yes

And, in the CLIENT side I have (looking at /mnt):

    drwxr-xr-x   1 root root  4096 jun  4 17:39 shared_55/

And when I execute the following:

    smbmount //salieri/shared_55 /mnt/shared_55 -o uid=jaume,gid=jaume

I got:

    drwxr-xr-x   1 jaume jaume  4096 jun  4 17:41 shared_55/

But (THAT'S the point!!!), when looking INSIDE /mnt/shared_55 I see:

    drwxr-xr-x  1 99 99      0 mar 29 19:52 vmwares/

Where user "99" is assigned nobody in the server machine. So, why does 
it only applies the uid/gid options to the main directory mounted and 
not its subdirectories?

Thank you,

More information about the samba mailing list