You are here
Home > Redhat > To understand the concept about Sticky Bit

To understand the concept about Sticky Bit

1. Create a Folder called /alldata [ mkdir /alldata ]

2. # chmod 777 /alldata

3. Create a few folders and files from different User

4. Check the Ownership of the folder & file

5. Try remove folder & file from different User irrespective of the ownership since we  have assigned the 777 permission

6. Now apply the sticky bit concept for the folder

  • # chmod s+o /alldata or # chmod 1777 /alldata

  • Now create the folders & files Under the folder /alldata

  • Check the Ownership

  • Try remove folder & file from different User irrespective of the ownership since we have assigned the 777 permission

 

Leave a Reply

4 × 3 =

Top