directory mask = 2770
chrisd at better-investing.org
Tue Oct 16 08:58:39 GMT 2001
>Sender: ries at soneramail.nl
>Date: Tue, 16 Oct 2001 15:36:03 +0200
>From: Ries van twisk <rvt at dds.nl>
>Reply-To: rvt at dds.nl
>X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9 i586)
>To: Chris Ditri <chrisd at u10a.better-investing.org>
>Subject: Re: directory mask = 2770
>This is from the top of my head.
>Did you take a look at the 'inherit permissions' parameter?
>I do know that the extra bits are forced to 0 because of security
>Chris Ditri wrote:
> > Hello everyone.
> > I am using Samba 2.0.7 on a RedHat 6.2 machine. I wanted to apply a
> > directory mask of 2770 to everything created in a share. The root
> > directory of this share already has these permissions. I want to have it
> > so that everything created in a certain directory has the permissions of
> > the group of the creator.
> > As it stands, I do have the directory mask = 2770 line in the smb.conf
> > regarding this share, and as I said, the 2770 permissions on the parent
> > directory (that I set manually). Files created in this share wind up with
> > the perms of 770 instead of 2770, but do take the group of the parent
> > directory. BUT if someone creates a directory within that directory, the
> > perms are 770 and the group is not inherited from the parent.
> > Now I know what you are thinking: "Why doesn't he just use the 'force
> > group' setting." Suffice it to say, it doesn't suit my needs in this
> > instance. If you want the long version, I can post that too, I just didn't
> > want to waste people's time.
> > Can samba support a directory mask of 2770? If so, what am I doing wrong?
> > Thanks!
> > Chris
> > A snippet of smb.conf:
> > [share]
> > path=/share
> > browseable =no
> > force user = %U
> > create mask = 0770
> > directory mask = 2770
> > admin users = chrisd,kurtk,administrator,zena
> > valid users = chrisd,kurtk,administrator,zena,+homeshare
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba