Operating System - HP-UX
1835192 Members
2442 Online
110077 Solutions
New Discussion

Re: adding sticky bit to symbolic link

 
Elizabeth Laughlin
Occasional Contributor

adding sticky bit to symbolic link

How can I add the sticky bit to a symbolic link (like the transition links have)? If I do chmod 1755 link_name, it puts the sticky bit on the directory the link is pointing to, not the link itself.
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: adding sticky bit to symbolic link

Hi Elizabeth:

This is expected. Using 'chmod' (here, to set the sticky bit) on a symbolic link changes the mode of the referenced file. See the man pages for 'chmod'.

If you need to recreate transition links you can do:

# /opt/upgrade/bin/tlinstall

...JRF...

Frank Li
Trusted Contributor

Re: adding sticky bit to symbolic link

In fact , you can change the "mode" of the symbolic link . if you change the sybolic link 'smode with mode "0xyz", it does no effect on the symbolic file ( and the real file ) ; but if you change the symbolic link's mode with #xyz , then in fact you change the real file's mode with #xyz ( where # is 1,4,7)
Hi Friend