nerdexam
CompTIA

XK0-004 · Question #33

Ann, a junior systems administrator, is required to add a line to the /etc/yum.conf file. However, she receives the following error message when she tries to add the line: Ann performs some diagnostic

The correct answer is C. chattr -I /etc/yum.conf. The immutable bit set (i) discovered with the lsattr (list/display the file attributes) command confirms the fact that the administrator, event with privilege user, can not delete the given file. The solution is to use, still with the privilege user, the chattr (change the file a

Security

Question

Ann, a junior systems administrator, is required to add a line to the /etc/yum.conf file. However, she receives the following error message when she tries to add the line:

Ann performs some diagnostics to attempt to find the root cause:

Which of the following commands should Ann execute to write content to /etc/yum?

Options

  • Achmod 755 /etc/yum.conf
  • Bsetfacl -m m:rw /etc/yum.conf
  • Cchattr -I /etc/yum.conf
  • Dsetenforce 0

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    7% (3)
  • C
    86% (36)
  • D
    2% (1)

Explanation

The immutable bit set (i) discovered with the lsattr (list/display the file attributes) command confirms the fact that the administrator, event with privilege user, can not delete the given file. The solution is to use, still with the privilege user, the chattr (change the file attributes) command with the -i switch.

Topics

#chattr#file attributes#immutable flag#file permissions

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice