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?
A. chmod 755 /etc/yum.conf
B. setfacl -m m:rw /etc/yum.conf
C. chattr -I /etc/yum.conf
D. setenforce 0
Keep in mind the answers on this one seem wrong. There is no capital I option for chattr. It’s lowercase +i to set and -i to remove immutable flag.
That said the only reasonable answer is C. An ADMIN shouldn’t have to adjust rwx in order to save.
To confirm your answer, heres another poster talking about it in the red hat forums. https://access.redhat.com/discussions/3987801
C