- To: Troy Rollo <troy@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] mkdir
- From: Cal Edwards <edencane@xxxxxxxxx>
- Date: Fri, 17 Feb 2012 09:47:49 +1030
- Cc: slug@xxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5vZv2DrcNbsyAMRRx7WORJdUsm4eHK6y71HU745EGmk=; b=eqbC6n3Mm6r9bJL8qnXKbo7zXavoCuSsH1jA9ritW1ivnihjOM4ap0TUu2sE5k1MN7 P8Tqa7rNjcTQD+XwZam07IvQrCAbfeExUOag36hjfzrDQsI9ayz6dHlYfpo2YfJ/QusD ly2ZVp13Pz6RJkX4ith4B9DYmIxvzZn8KUD2E=
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.