On Thu, 2003-06-19 at 14:47, Robert P. J. Day wrote:
> On Thu, 19 Jun 2003, Bret Hughes wrote:
> 
> > On Thu, 2003-06-19 at 11:04, Jianping Zhu wrote:
> > > I have a redhat 7.1 box server, now the the defautl umask for every user 
> > > is 022, how can I change it to 002?
> > > Thanks 
> > > 
> > 
> > As root edit /etc/bashrc.  There should be code in there to set the
> > umask.
> > 
> > This has most likely been changed from the original install and I guess
> > could have been changed in the /etc/skel/.bashrc instead.
> 
> if you want to change some user-wide property, you might want to 
> avoid actually editing /etc system files.  while this will work,
> any changes you make to files like /etc/profile or /etc/bashrc
> will be lost if you upgrade and the upgrade installs a new
> copy of that file.
> 
> you're better off adding extra files to the directory
> /etc/profile.d, which are sourced automatically from the bottom
> of /etc/profile.  that way, you can keep all your changes in 
> the same place, and it's much easier after an upgrade to just
> restore your extra files to that directory.
> 

Very good point.  I usually work really hard to keep changes upgrade
safe and will add this to my tool box.  Thanks.


Bret 


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to