How To Apply Sticky Bit In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. First, use the ls command to verify that the sticky bit isn’t already set on the directory:
ls -ld /path/to/directory
2. Then, set the sticky bit using the chmod command:
chmod +t /path/to/directory
3. Finally, verify that the sticky bit has been set by running the ls command again:
ls -ld /path/to/directory
The “t” in the permissions field will indicate that the sticky bit has been set.