Cisco CloudCenter: Get the Hybrid IT Advantage

Sticky Bit

Definition - What does Sticky Bit mean?

In Unix-like operating systems, a sticky bit is a permission bit which is set on a file or folder, thereby permitting only the owner or root user of the file or folder to modify, rename or delete the concerned directory or file. No other user would be permitted to have these privileges on a file which has a sticky bit. In Unix-like systems, without the sticky bit on, any user can modify, rename or delete the directory or file regardless of the owner of the file or folder.

Techopedia explains Sticky Bit

Introduced in the fifth edition of Unix, the sticky bit was created for only pure executable files. When introduced, files with a sticky bit ensured the text segment of the executable application was available in swap space even after the exit of the process. This allows the speeding up of executions of the frequently used executable programs. Presently, this feature has been abandoned by many and is only retained in Unixware and HP-UX.

The sticky bit is mostly used on the folders residing within file systems inside Unix-like operating systems. When the sticky bit is set, the filesystem treats such files or directories in a unique way that only the owner or the root owner can have rights of modifying, deleting or renaming of these. In Solaris-like operating systems, when the sticky bit is set on non-executable files, the files are not cached by the kernel. This helps not only to avoid allowing access to these files, but also helps in flushing important data from the system cache with respect to the files. In some cases, a sticky bit is also used for indicating that a particular file is yet to be mounted, thus allowing programs to ignore unmounted files.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.