220-1102 · Question #444
A user requested that the file permissions on a Linux device be changed to only allow access to a certain group of users. Which of the following commands should be used to complete the user's request?
The correct answer is B. chmod. To change file permissions on a Linux device to restrict access to a specific group of users, the chmod command is the appropriate tool.
Question
A user requested that the file permissions on a Linux device be changed to only allow access to a certain group of users. Which of the following commands should be used to complete the user's request?
Options
- Acat
- Bchmod
- Cpwd
- Dcacls
How the community answered
(26 responses)- B92% (24)
- C4% (1)
- D4% (1)
Why each option
To change file permissions on a Linux device to restrict access to a specific group of users, the `chmod` command is the appropriate tool.
The `cat` command is used to concatenate and display file content, not to change permissions.
The `chmod` command in Linux is used to change file and directory permissions, allowing the system administrator to specify read, write, and execute access for the owner, group, and others. By adjusting the permissions, access can be restricted to only allow a certain group of users.
The `pwd` command is used to print the current working directory, not to modify file permissions.
`cacls` is a Windows command-line utility for displaying or modifying access control lists (ACLs) for files and folders, not a Linux command.
Concept tested: Linux file permission management
Source: https://linux.die.net/man/1/chmod
Topics
Community Discussion
No community discussion yet for this question.