Linux Security: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
To change the defaults (see [http://unix.stackexchange.com/questions/83056/setting-umask-for-su-root]) to '''027''': |
To change the defaults (see [http://unix.stackexchange.com/questions/83056/setting-umask-for-su-root]) to '''027''': |
||
Add to {{file |
Add to {{file|/etc/sudoers}}: |
||
Defaults umask = 0027 |
Defaults umask = 0027 |
||
Defaults umask_override |
Defaults umask_override |
Revision as of 14:54, 7 June 2016
Anything about security on linux. When topics are already covered in other pages, give links to them.
Setting umask
Default setting for umask on Ubuntu / Debian is 022, meaning all created files / folders are by default world readable.
To change the defaults (see [1]) to 027:
Add to /etc/sudoers:
Defaults umask = 0027 Defaults umask_override
Edit /etc/login.defs:
UMASK 027