350-201 · Question #58
Which command does an engineer use to set read/write/execute access on a folder for everyone who reaches the resource?
The correct answer is D. chmod 777. chmod 777 assigns read, write, and execute permissions to the owner, group, and all others, giving full access to everyone who reaches the resource.
Question
Which command does an engineer use to set read/write/execute access on a folder for everyone who reaches the resource?
Options
- Achmod 666
- Bchmod 774
- Cchmod 775
- Dchmod 777
How the community answered
(47 responses)- A2% (1)
- B2% (1)
- C6% (3)
- D89% (42)
Why each option
chmod 777 assigns read, write, and execute permissions to the owner, group, and all others, giving full access to everyone who reaches the resource.
chmod 666 sets rw-rw-rw-, which grants read and write to everyone but omits execute permission, so users cannot run the resource as a program or traverse it as a directory.
chmod 774 sets rwxrwxr--, giving owner and group full permissions but restricting others to read-only with no write or execute access.
chmod 775 sets rwxrwxr-x, allowing others to read and execute but not write, so it does not grant full access to everyone.
In Linux octal notation, each digit represents owner, group, and others respectively. The value 7 equals read (4) + write (2) + execute (1), so chmod 777 grants full read/write/execute to all three categories of users simultaneously.
Concept tested: Linux chmod octal permission notation
Source: https://man7.org/linux/man-pages/man1/chmod.1.html
Topics
Community Discussion
No community discussion yet for this question.