[Samba] SETGID not being inherited

Mark Adams mark at campbell-lange.net
Thu Nov 29 16:19:30 GMT 2007


Someone else was recently having a different problem with mount.cifs.-  
is it possible for you to try smbfs ?

Mark.


On 28 Nov 2007, at 19:35, Paul Worrall <paul at basilisk.ukfsn.org> wrote:

> I have exactly the same problem, and the "force directory mode = 2770"
> does not solve it for me.
>
> I have noticed that directories created on the same share by Windows
> clients, smbclient on Linux and using the KDE smb: slave all inherit  
> the
> setgid bit as expected, so it seems to be something specific to  
> mount.cifs
>
> Here is the line from my /etc/fstab:
>
> //basilisk/Shared\040Documents /media/smb/shared_documents cifs
> guest,domain=HOME 0 0
>
> Things I have tried:
>
> setting the "nosetuids" mount option (though the man page says this  
> is the
> default anyway)
>
> setting the "noperm" mount option
>
> setting the "noacl" mount option
>
> Now I've run out of ideas.  Any help appreciated.
>
> -- 
> Paul
>
>
> On Wednesday 21 Nov 2007, Mark Adams wrote:
>> Apologies for the blank mail, iphone misbehaving.
>>
>> you can use "force directory mode = 2770" in each share config or  
>> globally.
>>
>> see
>>
>> http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.h
>> tml
>>
>> Cheers,
>> Mark
>>
>> On Wed, Nov 21, 2007 at 02:30:57PM +0000, Mark Adams wrote:
>>> Mark.
>>>
>>>
>>> On 20 Nov 2007, at 18:57, "Robert L. Harris" <robert.l.harris at gmail.com 
>>> >
>>>
>>> wrote:
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>>
>>>> I have an Debian system running samba 3.0.14a from sarge.  It is
>>>> exporting a file system, /data.  This file system has the perms  
>>>> 2770.
>>>> I have set the following in the smb.conf:
>>>>
>>>> inherit permissions = yes
>>>> inherit acls = yes
>>>>
>>>> I mount the filesystem from a linux, ubuntu, client and create a
>>>> directory.  The directory comes out with perms 0770.  I can chmod  
>>>> 2770
>>>> the directory and it takes the setgid just fine.  What am I  
>>>> missing,
>>>> where, in order to have the setgid pass down to the new  
>>>> directories on
>>>> the server properly?
>>>>
>>>> Robert
>>>>
>>>> - --
>>>>
>>>> :wq!
>>>>
>>>> -
>>>> --- 
>>>> --- 
>>>> ------------------------------------------------------------------
>>>> --- Robert L. Harris                     | GPG Key ID: E344DA3B
>>>>                                        @ x-hkp://pgp.mit.edu
>>>> DISCLAIMER:
>>>>     These are MY OPINIONS             With Dreams To Be A King,
>>>>      ALONE.  I speak for              First One Should Be A Man
>>>>      no-one else.                       - Manowar
>>>>
>>>> -----BEGIN PGP SIGNATURE-----
>>>> Version: GnuPG v1.4.6 (GNU/Linux)
>>>>
>>>> iD8DBQFHQy4n8+1vMONE2jsRAqF9AKCk3E8nY8pQDpkBT6I2TEj7sUc8EQCcCck1
>>>> FvQX1lHPjsRKzZNyBMMTc+s=
>>>> =uDVx
>>>> -----END PGP SIGNATURE-----
>>>>
>>>> --
>>>> To unsubscribe from this list go to the following URL and read the
>>>> instructions:  https://lists.samba.org/mailman/listinfo/samba
>>>
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions:  https://lists.samba.org/mailman/listinfo/samba
>
>
>
> -- 
> Paul
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba


More information about the samba mailing list