Force Group and NFS mounted dir problems

Gary.Carroll at marine.csiro.au Gary.Carroll at marine.csiro.au
Tue Jul 6 14:57:23 GMT 1999


Hi!

I hope you can assist me with this one.

We are using version Samba 2.0.3 and are having troubles making the "force
group" config option work as expected. To make matters more interesting the
file system being samba-shared is mounted from another unix server.

To explain:

Machine "marvin" (Solaris 2.7) exports /mnt/anthias using (/etc/dfs/dfstab):

share -F nfs -o root=forty2.bne.marine.csiro.au:reef2.bne.marine.csiro.au,
rw=forty2.bne.marine.csiro.au:reef2.bne.marine.csiro.au /mnt/anthias

Machine forty2 (Solaris 2.5.1) mounts this as /mnt/anthias. Forty2 runs the
samba server.

I have defined the share as 

[anthias]
        path = /mnt/anthias
        writable = yes
        force group = prawn
        printable = no
        comment = Blah blah
        public = yes
        create mode = 0770
        directory mode = 0770
        force create mode = 0770
        force directory mode = 0770

The problem is that when users create files or directories from a PC via
samba these files have the user's primary group and not "prawn". Annoying!
There is no problem in accessing the "anthias" share or creating files or
dirs.

Interesting fact #1: The unix directories are not set group id.

Interesting fact #2: When I duplicate the above smb.conf share settings and
make up a share using a local disk the force group works as expected.

Very interesting fact #3: When you use smbclient to create a file the
proper group ownership (prawn) is set.

Any assistance or ideas would be gratefully received.

Regards,

Gary

----------------------------------------------------------------------------
Gary Carroll: CSIRO Div. of Marine Research |  Gary.Carroll at marine.csiro.au
              PO Box 20                     |
              North Beach 6020              |  Phone: +61 8 9422 8214
              Western Australia             |  Fax  : +61 8 9422 8222
----------------------------------------------------------------------------


More information about the samba mailing list