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.
Regards,
Troy Rollo
Solicitor
Parry Carroll
Commercial Lawyers
Direct: (02) 8257 3177
Fax: (02) 9221 1375
Switch: (02) 9221 3899
E-mail: [email protected]
Web: www.parrycarroll.com.au
Liability limited by a scheme approved under Professional Standards
Legislation
This message and any attachments are confidential to Parry Carroll. If you
have received it by mistake, please let us know by reply and then delete it
from your system. You must not copy the message, alter it or disclose its
contents to anyone. Thank you.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html