Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?
written and listed by their owning user => 7 => umask 0
read and listed by their owning group => 5 => umask 2
not accessible at all for everyone else => 0 => umask 7
=> umask 0027, answer is B
777 for directories
666 for files
written and listed by their owning user => 7
read and listed by their owning group => 5
not accessible at all for everyone else => 0
777 - 750 = 027
Answer is B. 0027
The leading '0' means we're specifying the umask in octal (base 8).
The '2' in the first position subtracts write permissions for "others" (everyone else).
The '7' in the second position subtracts read, write, and execute permissions for the group.
The '2' in the third position subtracts write permission for the user.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
anhcq
Highly Voted 2 years, 8 months agoMalicaide
Highly Voted 4 years agojanotijr
Most Recent 1 month, 2 weeks agoasssssa
3 months, 2 weeks agoTewodros89
10 months agohello2022
8 months, 3 weeks agoDlm17
1 year, 2 months agoJubal75
1 year, 4 months agoarmandolubaba
1 year, 6 months agoHelgaLee
1 year, 10 months agoerikseals
2 years, 1 month agoFantaCola
2 years, 5 months agoLazylinux
2 years, 6 months agoMcLaba
3 years, 3 months agominajahan
4 years, 1 month ago