Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 728  / 2 Years ago, sat, april 16, 2022, 5:22:19

It seems logical that a user ought to be able to tell himself that he is not allowed to delete a file under his own ownership.


I'd like to take away my own permission to delete a file. Can I do this without chmodding it as root? Can I just say, "I am not allowed to delete this file, until I explicitly give myself permission to delete it"?


Thanks.


More From » permissions

 Answers
5

Deleting a file is an operation on the containing directory. If you don't have write permissions on that directory, you cannot delete files within it. Note: you won't be able to delete any file within it.


[#1852] Sunday, April 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
steaocyte

Total Points: 345
Total Questions: 122
Total Answers: 121

Location: Spain
Member since Wed, Nov 23, 2022
1 Year ago
;