- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sticky bit on symlinks (lchmod)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 08:20 AM
10-29-2002 08:20 AM
Sticky bit on symlinks (lchmod)
I am running a A class HP-UX v11.00 sever and I have accidentally deleted the symlink that pointed from /usr/bin to /bin. I managed to put the symlink back yet I'm not able to get back the sticky bit on the symlink as it was before (it was lr-xr-xr-t).
Obviously any change to the symlink causes the /usr/bin directory to get its permissions changed.
Iread smth about "...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)..." and that "In order to set the sticky bit on a symlink, one must use the undocumented
lchmod system call (i.e. lchmod("/bin", 041777))."
Yet I don't seem to get it right. How do I get that sticky bit back on the symlink without chaging permissions on the target directory?
Thnx a lot,
Vic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 08:44 AM
10-29-2002 08:44 AM
Re: Sticky bit on symlinks (lchmod)
As S.K. says, tlinstall will create it properly.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 08:44 AM
10-29-2002 08:44 AM
Re: Sticky bit on symlinks (lchmod)
# /opt/upgrade/bin/tlinstall
to recreate the transition links. Since I've never run it, I actually tested on my 11.0.
# cd /
# rm bin
==> Removing the "sticky bit" link to /usr/bin
# /opt/upgrade/bin/tlinstall
# ll bin
==> The "sticky bit" sym link is restored.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 08:57 AM
10-29-2002 08:57 AM
Re: Sticky bit on symlinks (lchmod)
You can easily rectify this. These are "transition" links which appeared when the filesystem layout changed at 10.0. To re-establish lost ones, do:
# /opt/upgrade/bin/tlinstall -l -v
You should also find man pages:
# /opt/upgrade/share/man/man1m.Z/tlinstall.1
m
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 09:06 AM
10-29-2002 09:06 AM
Re: Sticky bit on symlinks (lchmod)
I've fixed it by running '/opt/upgrade/bin/tlinstall'. I should have got the guts to do it earlier but I haven'T (--> sticky bit) :D