nerdexam
CompTIA

XK0-005 · Question #603

The group named support is unable to make changes to the config file. An administrator is reviewing the permissions and sees the following: $ ls -l config -rw-rw----. 1 root app 4682 02-15 11:25…

The correct answer is C. chmod 664 config. To give the support group access to modify the config file while preserving the current ownership, the administrator can execute the command chmod 664 config ©. This will change the permissions of the config file to read and write for the owner and group, and read only for…

System Management

Question

The group named support is unable to make changes to the config file. An administrator is reviewing the permissions and sees the following:

$ ls -l config -rw-rw----. 1 root app 4682 02-15 11:25 config Which of the following should the administrator execute in order to give the support group access to modify the file while preserving the current ownership?

Options

  • Achown :support config
  • Bsetfacl -m g:support:rw- config
  • Cchmod 664 config
  • Dchmod g+s config

How the community answered

(55 responses)
  • A
    2% (1)
  • B
    7% (4)
  • C
    89% (49)
  • D
    2% (1)

Explanation

To give the support group access to modify the config file while preserving the current ownership, the administrator can execute the command chmod 664 config ©. This will change the permissions of the config file to read and write for the owner and group, and read only for others. The owner and group of the file will remain as root and app respectively.

Topics

#File Permissions#chmod#Linux Administration#User & Group Management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice