Question: cd to the root directory. Execute the following command: ls -ld /tmp You will notice that the permissions on the /tmp directory contain the sticky
cd to the root directory. Execute the following command:
ls -ld /tmp
You will notice that the permissions on the/tmpdirectory contain the sticky bit. (The permissions end with at)
A. What is the significance of the sticky bit being set on adirectory?
(Hint: executeman -s2 chmodfor more info on the sticky bit)
The sticky bit prevents a file from being deleted....forever.
A file can only be deleted or modifed by the user if owned by the user or can be deleted or modified by a privileged user.
The sticky bit prevents a file from being copied.
The sticky bit makes the file an executable file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
