Interview Prep/Linux/Permissions, Users & sudo

Who can delete a file in a directory?

IntermediateConceptPermissions, Users & sudo
Answer

Anyone with write and execute permission on the directory, regardless of the file's own permissions or owner. A read-only file owned by root can be deleted by a user who owns the directory. The exception is the sticky bit, which restricts deletion to the file owner, directory owner, or root.

All Linux questions Roadmap: Linux

More on Permissions, Users & sudo