0

How to use sticky bit to secure directories

I need to secure the directories as well as files, how could this be done using sticky bits since I heard that it will be one of the perfect choice to secure directories...!!

michael
asked Feb 9, 2017
1 Answer
0

Using sticky bit you can restrict other users from deleting files or directories except the owner who created them and the root user In symbolic : chmod o+t /backup (or) chmod +t /backup

In numeric : chmod 1755 /backup

before sticky bit set :

drwxr-xr-x. 42 user1 abc  4096 Feb 14 17:30 backup

After sticky set :

drwxr-xr-t. 42 user1 abc 4096 Feb 14 17:30 backup

Now the stickybit 't' added in the above list

View More
kannan_raja
answered Feb 13, 2017
Your Answer
||||
x
 
100:0

Related Tutorials in How to use sticky bit to secure directories

Related Tutorials in How to use sticky bit to secure directories

Related Forums in How to use sticky bit to secure directories

Related Forums in How to use sticky bit to secure directories