Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] mkdir


Hi

On Wed, Feb 15, 2012 at 10:20 PM, Troy Rollo <troy@xxxxxxxxxxxxxxxxxxx>wrote:

> **
>
> On Wednesday 15 February 2012 21:14:41 Glen Turner wrote:
>
> > Cal Edwards wrote:
>
> > > I want to be able to create a new subdir and be sure that it has the
> same
>
> > > ownership as topdir.
>
> >
>
> > It depends how the directory is created. If they use mkdir from the
>
> > shell then the best you can do is to force the group to match the parent
>
> > directory -- search for "sticky bit on directory". Even that might not
>
> > give the group access, it depends on the user's umask.
>
>
> Also have a look at ACLs (setfacl, chacl, etc). You may need to install a
> package to get the tools since it is not usually part of a default
> installation, and getting ACLs to work can be somewhat of an art (and in
> some circumstances will require a reboot the first time). You can set an
> inherited ("default") permissions ACL on the directory to give permissions
> to specific users or groups (beyond the file's group ID) for new files
> created within that directory. You can even override umask for the file's
> group (and presumably "other") permission.
>
>
> Ive looked at, and tried to manipulate ACLs, admittedly on solaris where
they were default, but the added complexity of 2 layers of permission
control was too much for my intellect )-:
Thanks.
L.