[H-GEN] Global UMASK on Debian
Robert Brockway
rbrockway at opentrend.net
Thu Nov 10 23:39:03 EST 2005
On Fri, 11 Nov 2005, Robert Webb wrote:
> I tried each users .bash_profile - no good. (it works ok on other systems
> though)
> Also tried /etc/bashrc or ~/.bashrc - no good.
You are using bash right? :) This really should work :) It's how I set
my umask.
Either the bashrc files or the profile files should be parsed for an
interactive shell.
A common trick is to read the ~/.bashrc in through ~/.bash_profile for
consistency. Just put this in ~/.bash_profile
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
> I read all the relative doco's & man pages I could find.
> Greped for umask * in /etc and checked though the files with references to
> umask. Tried adding 007 or 0007 as per the comments in the conf file.
> The setting should take the first setting you put in.
Actually the shell will take the _last_ umask setting it is given (it just
changes it each time a new one is issued).
> Greg,
> Yes, dummy users are a good idea. I always do the same.
> Thank-you again for such a comprehensive answer.
> I will be re-installing Debian and following your suggestions carefully.
> There are some comments referring to the "gecos field having something to do
> with UMASK, ULIMIT & NICENESS. (I will be going through the .conf files
Except for niceness I wouldn't put them in the gecos field because there
are better places IMHO. ulimits can be set through
/etc/security/limits.conf in Debian.
Cheers,
Rob
--
Robert Brockway B.Sc. Phone: +1-416-669-3073
Senior Technical Consultant Email: support at opentrend.net
OpenTrend Solutions Ltd. Web: www.opentrend.net
We are open 24x365 for technical support. Call us in a crisis.
More information about the General
mailing list