What is sticky bit?
- Permission that protects the files in a directory is called sticky bit.
- If a file is set with a sticky bit, then it can only be deleted or renames by the owner of the file or directory.
- The sticky bit prevents a user from deleting the files of the others.
- Octal value of the sticky bit is 1 .
- Sticky bit is implicitly set in general but should be set manually in case of TMPFS file system.
drwxrwxrwt 7 root sys 528 jan 27 12:32 /tmp
Post a Comment