nerdexam
CompTIA

XK0-004 · Question #246

Given the output below: [root@appserver ~]# rm config.txt rm: remove regular file 'config.txt'? yes rm: cannot remove 'config.txt': Operation not permitted Which of the following might be the cause?

The correct answer is C. The file config.txt has the immutable attribute set. For starts, root is allowed to remove a file even if the writable bits are not set. Also, a common error message due a permission issues is "permission denied". This "Operation not permitted" is totally linked to the inmutable bit set.

Troubleshooting and Diagnostics

Question

Given the output below:

[root@appserver ~]# rm config.txt rm: remove regular file 'config.txt'? yes rm: cannot remove 'config.txt': Operation not permitted Which of the following might be the cause?

Options

  • AThe file config.txt does not have the user write bit set.
  • BThe file config.txt does not exist.
  • CThe file config.txt has the immutable attribute set.
  • DThe file config.txt has an ACL that does not permit deletion by others.

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    8% (2)
  • C
    80% (20)

Explanation

For starts, root is allowed to remove a file even if the writable bits are not set. Also, a common error message due a permission issues is "permission denied". This "Operation not permitted" is totally linked to the inmutable bit set.

Topics

#file attributes#immutable#chattr#operation not permitted

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice