Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 2 (Q.No. 17)
17.
The chmod ugo+rw note command can be represented in octal notation as
chmod 555 note
chmod 666 note
chmod 444 note
chmod 333 note
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

SAYAK said:   9 years ago
rwx rwx rwx
100 010 001 (Binary)
4 2 1

Amol pawar said:   9 years ago
Please give me more details about this question because I am the end user.

How to select a read = 4, write = 2 & x = 1.

Egin said:   1 decade ago
Please see below:

Users Groups Others
rwx rwx rwx
421 421 421

Therefore the octal notation of the command chmod ugo+rw is,
chmod 666

Since if you get the total of 421.

Where

4 - write permission.
2 - read permission.
1 - execute permission.

4+2 = 6 (rw).

Post your comments here:

Your comments will be displayed after verification.