220-1002 · Question #598
An administrator changed the lite permissions on a Linux server from -rwxrw-r-x to -rwxrwxrwx. Which of the following commands did the administrator use?
The correct answer is A. chmod. Linux provides a dedicated command to modify file permission bits for owner, group, and others independently of ownership.
Question
An administrator changed the lite permissions on a Linux server from -rwxrw-r-x to -rwxrwxrwx. Which of the following commands did the administrator use?
Options
- Achmod
- Brm
- Capt-get
- Dchown
How the community answered
(49 responses)- A88% (43)
- B2% (1)
- C6% (3)
- D4% (2)
Why each option
Linux provides a dedicated command to modify file permission bits for owner, group, and others independently of ownership.
The chmod (change mode) command modifies the read, write, and execute permission bits on Linux files and directories. Changing from -rwxrw-r-x to -rwxrwxrwx grants full permissions to all three categories (owner, group, others) and is achieved with a command such as chmod 777 or chmod a+rwx.
The rm command deletes files and directories and has no capability to modify permission bits.
apt-get is a package manager used to install, update, or remove software packages and does not interact with individual file permissions.
The chown command changes the ownership (user and group) of a file, not the permission bits represented by the rwx notation.
Concept tested: Linux chmod command for modifying file permissions
Source: https://man7.org/linux/man-pages/man1/chmod.1.html
Topics
Community Discussion
No community discussion yet for this question.