Tuesday, October 8, 2013

Sticky bit

what is difference between d and D in sticky bit????

Sticky bitIt should be t and T, If the sticky-bit is set on a file or directory without the execution bit set for the others category (non-user-owner and non-group-owner), it is indicated with a capital T.

Sticky bitFile permissions are broken doen into sections. type, owner, group, world 
(-,l,c,b,p,d are the operators for the type of file, and are always 
lowercase). [Normal,Link,Character device,Block device, Pipe, Directory] 

Owner, group and world use normal permissions of read, write, execute. In 
addition, special permissions bits are S or T. Sticky bit is a t and is 
always lower case when X is set and uppercase when not set, and is reserved 
for WORLD only. The s is used only for setuid for group or owner, replacing 
the x for execute. Normal permission maximum is 666 or 777 and is normally 
considered a high security risk. Special permissions are set using the 
high order bit on the file permissions 6777 will set the maximum permission, 
setting all special order functions for the file/directory, and is for files 
is generally considered a high security risk, for directories may be a good 
requirement for some applications. 

http://www.redbooks.ibm.com/redbooks/pdfs/gg244433 .pdf AIX 4.1 security 


Post a Comment

Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM