nerdexam
CompTIA

XK0-005 · 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

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

(19 responses)
  • B
    5% (1)
  • C
    84% (16)
  • D
    11% (2)

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 Permissions#Immutable Attribute#Linux Commands#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice