Pre-set file permissions

Trott ++ rauscher at remus.rutgers.edu
Tue Feb 19 01:11:45 AEST 1991


>I would like to know if there is such a way to preset (say, in a .login file)
>file permissions so that each time a file is saved, it's permissions will be
>those of the preset ones.  Thank you in advance for your reply.

Try adding the 'umask' command to your .cshrc.  (remember this is a
mask, the negation of the mode of protection).

Ie: umask 011 would result in a default protection of: 766.


>-Erik
-Rich
-- 
-------------
rauscher at rutgers.edu                RPO 5997 PO 5063, New Brunswick, NJ 08903
rauscher at PISCES                          Shakespeare learns Discrete Math:
{backbone site}!rutgers!rauscher                (2B | not (2B)) <=> TRUE



More information about the Comp.unix.questions mailing list