Operating System - HP-UX
1753505 Members
4799 Online
108794 Solutions
New Discussion юеВ

Re: sticky bit "t" on a file

 
SOLVED
Go to solution
rhansen
Frequent Advisor

sticky bit "t" on a file

Hello,

I am trying to set the sticky bit "t" on a file (/home/abcd/test)

I am using chmod o+t test, it is creating as

5760 -rwsr-xr-T 1 abcd sec 5894867 Sep 08 2008 test

I need the small "t" not the capital T.

Can someone advise.

Thanks.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: sticky bit "t" on a file

Hi:

The "T" (uppercase) and the "t" lowercase both indicate that that the sticky bit is set. You currently have (in octal): 5754

If you do:

# chmod o+x file

...you will see "t' after the execute permission for "others" is added.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: sticky bit "t" on a file

Hi (agai):

By the way, please see my last comments in your earlier thread:

https://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1370529

Regards!

...JRF...
rhansen
Frequent Advisor

Re: sticky bit "t" on a file

Thanks a lot for the solution, James.

I did assign the points to this as well as my last question.

Appreciate your help.

Thanks.