Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] I want to chmod 600 by default
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mosquito
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2004
Posts: 110

PostPosted: Wed Mar 16, 2005 8:43 pm    Post subject: [SOLVED] I want to chmod 600 by default Reply with quote

Where do I make changes so that libraries chmod 700 and files chmod 600 when I create new documents and libraries?

mosquito


Last edited by mosquito on Thu Mar 17, 2005 11:48 am; edited 1 time in total
Back to top
View user's profile Send private message
shadow255
Guru
Guru


Joined: 04 Apr 2003
Posts: 412

PostPosted: Wed Mar 16, 2005 9:12 pm    Post subject: Reply with quote

You want your file creation mask to be 077. This can be done by modifying your $HOME/.bashrc to include a line (I usually put it at the end of the file) like this:
Code:
umask 077

If you're using a different shell for your primary user, you'll need to modify a different file, but you should know how to go about that if you're using anything other than bash.

I hope this helps!
_________________
Vogon poetry is of course the third worst in the Universe. -- Douglas Adams, The Hitchhiker's Guide to the Galaxy
Back to top
View user's profile Send private message
mosquito
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2004
Posts: 110

PostPosted: Wed Mar 16, 2005 9:23 pm    Post subject: Reply with quote

shadow255 wrote:
You want your file creation mask to be 077. This can be done by modifying your $HOME/.bashrc to include a line (I usually put it at the end of the file) like this:
Code:
umask 077


I hope this helps!


Thx just what I needed. So simple but efficient. Linux in a nuttshell

mosquito
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum