GSEC · Question #234
Which of the following commands is used to change file access permissions in Linux?
The correct answer is C. chmod. The chmod command is the standard Linux utility for modifying file and directory access permissions.
Question
Which of the following commands is used to change file access permissions in Linux?
Options
- Achgrp
- Bchperm
- Cchmod
- Dchown
How the community answered
(40 responses)- A5% (2)
- B3% (1)
- C83% (33)
- D10% (4)
Why each option
The chmod command is the standard Linux utility for modifying file and directory access permissions.
chgrp changes the group ownership of a file, not its permission bits.
chperm is not a valid Linux command and does not exist in standard distributions.
chmod (change mode) is the POSIX-standard Linux command used to set or modify read, write, and execute permissions on files and directories for the owner, group, and others. It accepts both symbolic (e.g., chmod u+x) and octal (e.g., chmod 755) notation. It is the only command specifically designed to alter permission bits on the filesystem.
chown changes the user and/or group ownership of a file, not the permission bits.
Concept tested: Linux chmod command for file permissions
Source: https://man7.org/linux/man-pages/man1/chmod.1.html
Topics
Community Discussion
No community discussion yet for this question.