How Do I Know If a Sticky Bit Is Set in Linux?
Contents How Do You Know If a Sticky Bit Is Set? Verifying That the Sticky Bit Is on Check the Mount Statement in Bpxprmxx. Display the File System Information...
Contents
How do you know if a sticky bit is set?
Verifying that the sticky bit is on
- Check the MOUNT statement in BPXPRMxx.
- Display the file system information by using the df command. The file system, the mount table, and ISHELL have attributes that you can use to see this setting: Ignore SETUID . . . . :
How do you set a sticky bit?
The sticky bit can be set using the chmod command and can be set using its octal mode 1000 or by its symbol t (s is already used by the setuid bit). For example, to add the bit on the directory /usr/local/tmp , one would type chmod +t /usr/local/tmp .