Troubleshooting

As root, an administrator tries to append a line to /etc/app.conf and gets "Operation not permitted." The file is owned by root with mode 0644, the filesystem is mounted read-write, and SELinux is in permissive mode. What is the BEST way to resolve the problem?

Show the answer

Correct answerA. Check for the immutable flag with lsattr and clear it with chattr -i

Root is blocked despite correct mode bits, a read-write mount and permissive SELinux, which points to the immutable extended attribute. lsattr shows it and chattr -i clears it. An ACL entry cannot override the immutable flag, and root already bypasses ACL checks.