Sticky bit is a
bit set in permission of a file or directory to give special access –rights to
user. When we set the sticky bit for any
executable file, it will remain in swap space after the process exited. It
will help to reduce time of execution in repeatedly used programs. So, we can
set this sticky bit for frequently used programs like editors, commands etc.
So, execution of them will be faster as compared to without sticky bit.
Main important use of sticky
bit is on directory, when we set sticky bit for directory then files reside
in...
Wednesday, October 23, 2013
Sticky bit concept and implementation Check CPU usage of file system
SetUID:
SetUID is a set User
ID upon execution. We can identify SetUID bit is set or not in permissions
of file by long listing the details of file as below.
[linuxconcepts@localhost
test]$ cat > setuid.sh
#!/bin/sh
echo "SET
USER ID BIT";
date
[linuxconcepts@localhost
test]$
[linuxconcepts@localhost
test]$ ls -l setuid.sh
-rw-rw-r--....
Subscribe to:
Posts (Atom)