LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (http://www.linuxquestions.org/questions/general-10/)
-   -   About Sticky bit... (http://www.linuxquestions.org/questions/general-10/about-sticky-bit-483102/)

masudur_iiu 09-13-2006 09:31 AM

About Sticky bit...
 
I know about sticky bit but can you tell me how to set a sticky bit?

masudur_iiu 09-13-2006 09:36 AM

-rwxrwxrwt both others execute and sticky bit are set
-rwxrwxr-T sticky bit is set, but others execute is not set

is it the answer?

w3bd3vil 09-13-2006 09:41 AM

yep, that sounds right.

chmod +t /tmp

mjones490 09-13-2006 10:09 AM

There's also a way to set the sticky bits in absolute mode. Just prepend the octal bitmap to the other permission settings. . .
Code:

$chmod 7666 theFile
will set all three sticky bits with read/execute permissions for everyone.

Thanks,
Mark

masudur_iiu 09-13-2006 10:23 AM

Thank you very much...


All times are GMT -5. The time now is 12:08 PM.