Kurt Wall pecked at the keyboard and wrote:
On Sunday 10 August 2008 00:50:22 John wrote:
Hi
In SuSE 10.3, is there any way to set the default permissions for new files added into a directory?
For file permissions and depending on how they are added, the umask might do the trick. File ownership is trickier.
Currently, to maintain consistency, I have to wake the server up and change files added to a specific directory with 'chown root:users *'. Can this be automated?
Sure. A cron job.
Kurt
By setting the perms and ownership (man chmod) The letters rwxXst select file mode bits for the affected users: read (r), write (w), execute (or search for directories) (x), execute/search only if the file is a directory or already has execute permission for some user (X), _set user or group ID on execution (s)_, restricted deletion flag or sticky bit (t). Instead of one or more of these letters, you can specify exactly one of the letters ugo: the permissions granted to the user who owns the file (u), the permissions granted to other users who are members of the file's group (g), and the permissions granted to users that are in neither of the two preceding categories (o). -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org