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.
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)- B5% (1)
- C84% (16)
- D11% (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
Community Discussion
No community discussion yet for this question.