nerdexam
CompTIA

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.

Operating Systems

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)
  • B
    92% (24)
  • C
    4% (1)
  • D
    4% (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.

Acat

The `cat` command is used to concatenate and display file content, not to change permissions.

BchmodCorrect

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.

Cpwd

The `pwd` command is used to print the current working directory, not to modify file permissions.

Dcacls

`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

#Linux commands#File permissions#chmod#Operating system administration

Community Discussion

No community discussion yet for this question.

Full 220-1102 Practice