where is the file for setting new file permissions?

Todd Zullinger tmz at pobox.com
Mon Mar 19 05:31:18 UTC 2007


linuxmaillists at charter.net wrote:
> I want to change the automatic file permissions that are 
> created on new files.  Where is the file that lets me do 
> that?  A lot of googling got my a lot of information but 
> none of it answered my question.
> 
> I want to have all new files set to 644 = rw-r--r--

You want to set umask to 0022.  You can set this in ~/.bashrc like so:

umask 0022

It is set to 0002 in /etc/bashrc for normal users.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
The power of accurate observation is frequently called cynicism by
those who don't have it.
    -- George Bernard Shaw

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070319/c62086a3/attachment-0001.sig>


More information about the fedora-list mailing list