Operating System - HP-UX
1825667 Members
4224 Online
109686 Solutions
New Discussion

Re: how to set sticky bit for link file ( /bin ---> /usr/bin)

 
kirit_2
Frequent Advisor

how to set sticky bit for link file ( /bin ---> /usr/bin)

Hi

Somebody has deleted the link file /bin in root directory which is linked to /usr/bin directory.

we have manually created link
ln -s /usr/bin bin

but when we compare the link file with other system , there is sticky bit set on others permission , we tried to change sticky bit manually but as i understand from documents that we can't chage permission on link file.

please suggest how to set sticky bit on this link file.
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: how to set sticky bit for link file ( /bin ---> /usr/bin)

You can just ignore the tlink bit.
If you really really want it back, you can read my responses in this thread, especially the last one:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1139134

Your point assignment rate is pretty low. If this answer was helpful, please read this link and assign points and close this thread:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Fat Scrape
Honored Contributor

Re: how to set sticky bit for link file ( /bin ---> /usr/bin)

sticky bit on symlinks
======================
In HP-UX 10.0 and later, a symbolic link that has its sticky bit set is called a transition link (i.e. links to ease the transition to the new SVR4 filesystem layout). Transition links are a bit faster, because the linked-to filename is stored in the inode itself, instead of using an
allocation unit to store the link. For more info on the purpose for transition links, see the tlinstall(update_aid) manpage.

In order to set the sticky bit on a symlink, one must use the undocumented
lchmod system call (i.e. lchmod("/bin", 041777)).

[Example]
lr-xr-xr-t 1 root sys 8 Jun 7 01:00 /bin ->/usr/bin

Fat
tsf_1
Frequent Advisor

Re: how to set sticky bit for link file ( /bin ---> /usr/bin)

Hello Kirit,
You may try "tlinstall" to get back the link. Thanks.
be willing to do, be happy to bear
kirit_2
Frequent Advisor

Re: how to set sticky bit for link file ( /bin ---> /usr/bin)

hi , what all link file it will install if i use tlinstall commnad.

i have already created link file manually this time and my work is going on without any problem.

please suggest.
Dennis Handly
Acclaimed Contributor

Re: how to set sticky bit for link file ( /bin ---> /usr/bin)

>what all link file it will install if i use tlinstall command.

Zillions of links. :-) It's quick.
But it will fix your "bad" one.

>i have already created link file manually this time and my work is going on without any problem.

I assumed you "really really" wanted to fix it.