Let's say I
chmod 1777 a folder
/opt/test and all files inside it as user user1. Hence user2 is able to update and edit files inside the
When user2 operates via
sudo, he's able to delete any file from the directory, even those he does not own; is this normal? If yes, what is the purpose of setting the sticky bit?
When another user user3 operating without
sudo tries to delete a file he does not own, he gets a "permission denied" error.
Note: All users belong to the default group.