- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Link problem
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
04-22-2004 12:26 PM
04-22-2004 12:26 PM
Link problem
lrwxrwxrwt 1 root root 8 Feb 27 14:40 /bin -> /usr/bin
but the command:
#ln -sf /usr/bin /bin give me
lrwxr-xr-xt 1 root sys date bin@ -> /usr/bin
If you know how to do let me know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 12:40 PM
04-22-2004 12:40 PM
Re: Link problem
I your case it was set to 022.
But for symbolic links they do not matter.
The permissions on them are not checked, the permissions of the destination (/usr/bin in your case get checked).
So:
Your Link is working fine.
If you realy care about the "ll" output you could rm and recreate it with "umask 000" before. Dont forget to set it back to 022 after, otherwise EVERY new file/dfir will be writeable to everybody.
I guess the time of the file you dont care about. But if so: Try a "touch -t
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 12:46 PM
04-22-2004 12:46 PM
Re: Link problem
I have in fact:
#ln -sf /usr/bin /bin give me
lrwxr-xr-x 1 root sys "date-time" bin@ -> /usr/bin
The link is created without the "t".
How to put this "t" and what is the meaning ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 12:54 PM
04-22-2004 12:54 PM
Re: Link problem
They are excactly the same like normal links.
They were created during HP-UX 9 to 10 upgrade, because there a lots of file and directories in different locations between ux 9 and 10. The t helps to identify a Transition link.
You dont realy need to care about that.
But you could try to run "tlinstall" which checks all transition link within the whole system.
btw. The t bit on normal directories is called the "sticky bit" and means that only the owner of a file can remove even it and the directory is writeable i.e. for everybody.
Hope this helped.
Juergen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 12:59 PM
04-22-2004 12:59 PM
Re: Link problem
After creating the link:
#ln -sf /usr/bin /bin
I have the same problem
Any Idea ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 01:03 PM
04-22-2004 01:03 PM
Re: Link problem
I have "root" and "sys"
is it correct ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 01:07 PM
04-22-2004 01:07 PM
Re: Link problem
They should use interpreter /sbin/sh thats because i.e. /usr might not be mounted when they get executed.
Any /sbin/ commands are not using shared libraries as well which are normaly located under /usr too.
Did I unterstood you problem correctly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 01:15 PM
04-22-2004 01:15 PM
Re: Link problem
And I have the message:
/bin/sh: not found.
That's why i try to re-created this link
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 01:23 PM
04-22-2004 01:23 PM
Re: Link problem
How do start OV?
pls post the command and paramters.
If this is a shell script. pls post that as well.
Perhaps I can find s.th.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 01:58 PM
04-22-2004 01:58 PM
Re: Link problem
Is it possible to re-create the exact link with "t" instead of "x" like the following:
lrwxrwxrwt 1 root root 8 Feb 27 14:40 /bin
-> /usr/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 02:17 PM
04-22-2004 02:17 PM
Re: Link problem
The permissions of symbolic links are realy just cosmetical.
Lets try it that way:
1. lets check if /bin/sh can be found from your normal session and the Persiossion of´this file ARE important indeed:
ll /bin/sh
whats the output
It should be excutable for you.
(r-xr-xr-x)
2. you type in a command to start OV
which is it? I guess its ovstart.
Type in
which ovstart (or your command)
It should return with the complete PATH
name where ist is located.
Then do a "file
I guess the result will be somthing with
shell
If so, I hope you are familar with the
editor "vi".
make a copy of the file , just to be sure to be sure.
edit the file and check in the very first
line (I guess it containes : #!/bin/sh )
for a trailing space character at the end.
remove it and try to run it again.
thats because I think to remeber a problem years ago, when a trailing space in a script created a similar problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 02:20 PM
04-22-2004 02:20 PM
Re: Link problem
/bin/sh not found
That's my problem. Even if the link exist between bin@ -> /usr/bin
Any idea ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 02:24 PM
04-22-2004 02:24 PM
Re: Link problem
Try a "ll -d /usr/bin" as well pls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 02:28 PM
04-22-2004 02:28 PM
Re: Link problem
OSNMC2,sys,root # ll /usr/bin/sh
-r-xr-xr-x 2 bin bin 221184 Apr 23 2001 /usr/bin/sh*
OSNMC2,sys,root #
OSNMC2,sys,root #
OSNMC2,sys,root #
OSNMC2,sys,root #
OSNMC2,sys,root #
OSNMC2,sys,root # ll -d /usr/bin
drwxrwxrwt 6 bin bin 10240 Apr 23 10:17 /usr/bin/
OSNMC2,sys,root #
OSNMC2,sys,root #
OSNMC2,sys,root #
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 02:46 PM
04-22-2004 02:46 PM
Re: Link problem
OK Next try:
try to remove the link and recreate it.
# rm -i /bin (and a y after the question)
# newgrp root # to be sure you belong to this group
# umask 000 # standard permissions
# ln -s /usr/bin /bin
# ll /bin
# cd /bin # your can enter the directoy?)
# ll /bin/sh # again and again :)
This this all doesnt help. Do you have a backup, can you restore just this file from it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 03:44 PM
04-22-2004 03:44 PM
Re: Link problem
I doesn't help me, I have done all you ask me but still:
# ll /bin/sh
/bin/sh not found
#
I'm having a complete backup on DAT, but how to extract only the missing link ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 11:23 PM
04-22-2004 11:23 PM
Re: Link problem
I created a tar file containing "*only*" the /bin link from a UX 11.0 system. See attachment.
If your browser running under Windows
ftp from dos prompt the "bin" option to your unix system.
First check the content with:
tar tvf binlink.tar
If this is a success unpack it with:
tar xvf binlink.tar
------------------------------------------
If this istnt helping you -
how to restore it from your backup depends on how it got backed up.
which backup tool/system you are using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 11:37 PM
04-22-2004 11:37 PM
Re: Link problem
Forget the attachment - tsstssstsss
here it it:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 01:32 AM
04-23-2004 01:32 AM
Re: Link problem
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2004 09:54 PM
04-25-2004 09:54 PM
Re: Link problem
I hope I helped you.
I few points would be appreciated...
regards
Juergen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 01:11 AM
04-26-2004 01:11 AM
Re: Link problem
I put backup and I will restart my upgrade
Anyway thanks for your help
Regards