What is a sticky Bit and how to set it in Linux?

 In this post we will see What is Sticky Bit? Why we require Sticky Bit? Where we are going to implement Sticky Bit? How to implement Sticky Bit in Linux? What is Sticky Bit? Sticky Bit is mainly used on folders in order to avoid deletion of a folder and its content by other users though they having write permissions on the folder contents. If Sticky bit is enabled on a folder, the folder contents are deleted by only owner who created them and the root user. No one else can delete other users data in this folder(Where sticky bit is set). This is a security measure to avoid deletion of critical folders and their content(sub-folders and files), though other users have full permissions.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis