XK0-005 · Question #10510
A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?
The correct answer is D. chmod 1755 devops. The command that will set the sticky bit on a directory called devops with 755 file permission is chmod 1755 devops. This command will use chmod to change the mode of the directory devops to 1755, which means that the owner has read, write, and execute permissions (7), the…
Question
Options
- Achown -s 755 devops
- Bchown 1755 devops
- Cchmod -s 755 devops
- Dchmod 1755 devops
How the community answered
(53 responses)- A11% (6)
- B9% (5)
- C4% (2)
- D75% (40)
Explanation
The command that will set the sticky bit on a directory called devops with 755 file permission is chmod 1755 devops. This command will use chmod to change the mode of the directory devops to 1755, which means that the owner has read, write, and execute permissions (7), the group has read and execute permissions (5), and others have read and execute permissions (5). The first digit 1 indicates that the sticky bit is set on the directory, which is a special permission that prevents users from deleting or renaming files in the directory that they do not own.
Topics
Community Discussion
No community discussion yet for this question.