Message Board -  Archive

[ Login ] [ Create Account ]
[ Board List ] [ View Board ] [ Post Reply ]
  Author  Subject: Re: umask

Posted on 07-25-2000 02:26 a.m. ET  reply

Original Poster: Mark Krentel

You set this on a shell-by-shell basis with files in /etc. For example,
/etc/csh.login for csh/tcsh users and /etc/profile for bash/sh users.
Of course, you're only setting the default. Users can reset their own
umasks if they wish. "man tcsh" reports:

Startup and shutdown
A login shell begins by executing commands from the system
files /etc/csh.cshrc and /etc/csh.login. It then executes
commands from files in the user's home directory: first
~/.tcshrc or, if ~/.tcshrc is not found, ~/.cshrc,
then ~/.login, ...

And 740 is a rather unusual umask. You do understand that a 1 in
the umask is the prohibited bit, right? That is, 000 is the most
permissive umask and 777 is the most restrictive. So, 740 allows
world writable files, probably not what you want.


< Previous 1 Next >

Site Contents