[ale] Specify permissions, owner, and group of newly created files

Geoffrey esoteric at 3times25.net
Wed Sep 1 16:57:21 EDT 2004


Rick Huebner wrote:
> I've always wondered how to make new files created in a directory be created
> with a specific permission, owner, and group.  Right now, I have a series of
> cron jobs that run to change the permissions in several directories each
> hour.  Is there any way on a per directory basis to do this?

There's a number of ways to deal with this, from setting the perms on 
the directories to using the umask command.  Check out:

man chmod
man umask

-- 
Until later, Geoffrey       Registered Linux User #108567
                             AT&T Certified UNIX System Programmer - 1995



More information about the Ale mailing list