nerdexam
CompTIACompTIA

XK0-005 · Question #547

XK0-005 Question #547: Real Exam Question with Answer & Explanation

The correct answer is D: File attributes are preventing file modification.. File attributes are preventing file modification, which is causing the error message. The output of lsattr /home/user/data.txt shows that the file has the immutable attribute (i) set, which means that the file cannot be changed, deleted, or renamed. The command setfacl -b /home/u

System Management

Question

A Linux administrator is trying to remove the ACL from the file /home/user/data. txt but receives the following error message: Given the following analysis: Which of the following is causing the error message?

Options

  • AThe administrator is not using a highly privileged account.
  • BThe filesystem is mounted with the wrong options.
  • CSELinux file context is denying the ACL changes.
  • DFile attributes are preventing file modification.

Explanation

File attributes are preventing file modification, which is causing the error message. The output of lsattr /home/user/data.txt shows that the file has the immutable attribute (i) set, which means that the file cannot be changed, deleted, or renamed. The command setfacl -b /home/user/data.txt tries to remove the ACL from the file, but fails because of the immutable attribute. The administrator needs to remove the immutable attribute first by using the command chattr -i /home/user/data.txt and then try to remove the ACL again.

Topics

#Linux file attributes#ACLs#File permissions#Troubleshooting Linux

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions