Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 42757  / 2 Years ago, wed, june 8, 2022, 3:52:00

I have just started using Lynis (please don't think I have misspelled Linux). After running it, I was suggested to set umask in /etc/login.defs and /etc/init.d/rc to 027 than the default 022.



I want to know what changes that would make to file permissions. Also why is the value stored in two files? Do they work differently?



For more info if necessary, I use Ubuntu 12.10, and I am the only user of the system.


More From » permissions

 Answers
6

The 027 umask setting means that the owning group would be allowed to read the newly-created files as well. This moves the permission granting model a little further from dealing with permission bits and bases it on group ownership.



This will create directories with permission 750.



Please check this great article 027 umask — a compromise between security and simplicity.


[#27031] Thursday, June 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tubequ

Total Points: 11
Total Questions: 113
Total Answers: 115

Location: Equatorial Guinea
Member since Thu, Oct 7, 2021
3 Years ago
;