- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: odd shell script link errorsafter login proced...
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
03-09-2004 07:37 AM
03-09-2004 07:37 AM
odd shell script link errorsafter login procedure update
I have no idea what the errors mean. Yeah, /bin/sh and /usr/bin/sh are hard linked, they have the same inode. That's the way it's supposed to be!
Here's what we're seeing:
interpreter "/bin/sh" not found
file link resolves to "/usr/bin/sh"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 07:53 AM
03-09-2004 07:53 AM
Re: odd shell script link errorsafter login procedure update
1) Your scripts were copied/ftp'ed from a Windows box and have CR/LF in them rather than just LF's. Run then through dos2ux to clean that up or ftp them in ASCII mode.
2) Your application did a chroot().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 07:57 AM
03-09-2004 07:57 AM
Re: odd shell script link errorsafter login procedure update
BUT, they might call an executable which does a chroot. Where do i go with that?
Thanks for the tip, btw.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 08:03 AM
03-09-2004 08:03 AM
Re: odd shell script link errorsafter login procedure update
The chroot() is more subtle and the only guys who would know are the developers.
chroot("/home/mydir");
now every reference to "/" would actually refer to "/home/mydir" so that "/bin/sh" would actually be "/home/mydir/bin/sh".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 08:22 AM
03-09-2004 08:22 AM
Re: odd shell script link errorsafter login procedure update
the actual /bin/sh shell is not there.
#!/bin/sh
may not be right.
You'd have more trouble if that was the case so check the scripts.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 09:23 AM
03-09-2004 09:23 AM
Re: odd shell script link errorsafter login procedure update
/bin/sh and /usr/bin are not hard linked, they are the same because /bin is a link to /usr/bin.
Please post ls -lisad /bin /bin/sh /usr/bin/sh
thanks,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:58 PM
03-09-2004 01:58 PM
Re: odd shell script link errorsafter login procedure update
#!/usr/bin/sh
PATH=/usr/bin
date
Make this executable and run it. If this works, then check for permission changes made to / /usr /opt /dev /tmp /var. They should look like this:
ll -d / /usr /opt /dev /tmp /var
drwxr-xr-x 20 root root 8192 Feb 24 22:03 //
dr-xr-xr-x 16 bin bin 8192 Feb 18 13:26 /dev/
dr-xr-xr-x 50 bin bin 8192 Mar 2 12:00 /opt/
drwxrwxrwt 6 bin bin 8192 Mar 9 02:01 /tmp/
dr-xr-xr-x 25 bin bin 8192 Oct 24 13:07 /usr/
dr-xr-xr-x 26 bin bin 8192 Dec 17 08:23 /var/
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 02:46 AM
03-10-2004 02:46 AM
Re: odd shell script link errorsafter login procedure update
(1) Micheal is absolutely correct about the links, and here is the command he asked to see:
ls -lisad /bin /bin/sh /usr/bin/sh
908 0 lr-xr-xr-t 1 root sys 8 Jul 27 2000 /bin -> /usr/bin
19927 424 -r-xr-xr-x 2 bin bin 217088 Jul 1 2003 /bin/sh
19927 424 -r-xr-xr-x 2 bin bin 217088 Jul 1 2003 /usr/bin/sh
(2) The ^M thing sounds possible because some of this was converted from EBCDIC text. Unfortunately, i'm stupid and do not know how to check for a control character using vi. I will if you tell me how :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 02:52 AM
03-10-2004 02:52 AM
Re: odd shell script link errorsafter login procedure update
e.g. vi myfile.sh
If the CR's are in the file, you will see "^M"; ie CR == Control-M == ASCII 13 (dec).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 03:31 AM
03-10-2004 03:31 AM
Re: odd shell script link errorsafter login procedure update
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2007 03:48 AM
06-07-2007 03:48 AM
Re: odd shell script link errorsafter login procedure update
I was getting the same error message:
nterpreter "/bin/sh" not found
file link resolves to "/usr/bin/sh"
when I went to run the create_depot command after I downloaded some patches from the ITRC.
I did indeed un-zip them on my XP machine and then SFTP them over to the HP-UX 11.23 box.
Running the command:
dos2ux oldfile > newfile
did the trick and the create_depot command then worked fine.
thanks for the tips. I hope this helps others too. ITRC forums rock!