Bug 1431 - options only for the root mounted
Summary: options only for the root mounted
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbmount (unmaintained) (show other bugs)
Version: 3.0.4
Hardware: x86 Linux
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2004-06-04 18:11 UTC by Jaume Catarineu
Modified: 2006-04-08 22:27 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jaume Catarineu 2004-06-04 18:11:07 UTC

I've installed Fedora Core 2 (smb 3.0.3-5) 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 (3.0.2a), 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 filesystem).

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 (umask,fmask...) options to the main directory mounted and
not its subdirectories?

Thank you,
Comment 1 Gerald (Jerry) Carter (dead mail address) 2006-04-08 22:27:40 UTC
I suggest you try the cifs fs.  We don't maintain the smbfs kernel code.