How to set the default file permissions on ALL newly created files in linux
Posted
by eviljack
on Super User
See other posts from Super User
or by eviljack
Published on 2009-10-01T11:56:45Z
Indexed on
2010/03/16
5:26 UTC
Read the original article
Hit count: 569
My question is similar to this:
http://stackoverflow.com/questions/228534/linux-default-file-permission
but there is no scp/ftp client involved and that question looks abandoned. Simply put: I want to be able to, at some global level decree that all newly created files will never have world writable permissions (0775).
I tried putting a umask 02 in /etc/profile then in my bash_profile but it only works for scripts or new files that I create in a shell. It doesn't work for files that another binary creates. Is there anyway to have all new files that are created?
© Super User or respective owner