nerdexam
CompTIA

XK0-005 · Question #1542

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…

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…

Troubleshooting

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.

How the community answered

(29 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    7% (2)
  • D
    79% (23)

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

#ACLs#File Attributes#Troubleshooting#Permissions

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice