[Linux-disciples] Per-directory Umask Setting?
adam at rosi-kessel.org
Thu May 27 16:45:43 EDT 2004
On Thu, May 27, 2004 at 04:42:08PM -0400, Dylan Thurston wrote:
> On Thu, May 27, 2004 at 02:23:13PM -0400, Adam Kessel wrote:
> > Let's say I have a directory owned by user:group and I want all files in
> > the directory to be user and group readable and writable and all
> > directories in the directories to be user and group readable, writable,
> > and executable.
> Generally, the permissions on the files are what they are. You seem to
> want to override all permissions on all files in a subdirectory; I don't
> know of any way to do that. You need to make sure the files have the
> right permissions in the first place. What about a cron job to fix the
What I really want is for files *created* in a directory to inherit a
certain set of permissions, the way they inherit ownership if the
directory is ug+s. I could do this with a cron job but of course there
would be some lag period between the time the file is created and the
time it is assigned the correct permissions. I wouldn't want to run the
cron job too frequently because it would be at least mildly disk
intensive having to spider through the whole directory structure.
I have a suspicion that this is what the new ACL filesystem features in
2.6 do, but a quick look at the documentation was unenlightening.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040527/1540130d/attachment.pgp
More information about the Linux-disciples