- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: POSIX
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-08-2003 03:22 AM
04-08-2003 03:22 AM
POSIX
My POSIX shell has stopped working. When a user types in sh and hits return the screen just hangs. When a user trys to logon who has sh as a shell it also hangs. Please help.
/usr/bin/sh
/bin/posix/sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 03:28 AM
04-08-2003 03:28 AM
Re: POSIX
What is you hpux version ?
check the permissions off you /usr/bin/sh
-r-xr-xr-x 2 bin bin 212992 Jul 5 1999 sh
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 03:31 AM
04-08-2003 03:31 AM
Re: POSIX
Check /etc/profile for any unwanted entries.
Check /var/adm/syslog/syslog.log for any errors. viz open file overflow.
Check the memory usage and swap usage.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 03:53 AM
04-08-2003 03:53 AM
Re: POSIX
the /usr/bin/sh file should have following permissions
-r-xr-xr-x 2 bin bin 204800 Apr 14 2002 sh
# file sh
sh: PA-RISC1.1 shared executable dynamically linked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 03:56 AM
04-08-2003 03:56 AM
Re: POSIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 03:58 AM
04-08-2003 03:58 AM
Re: POSIX
Just a quick thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 04:01 AM
04-08-2003 04:01 AM
Re: POSIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 04:09 AM
04-08-2003 04:09 AM
Re: POSIX
We really need a bit more info here:
1) What OS?
# uname -a
2) Is root ok using the statically compiled shell? If so can you change a users shell to /sbin/sh and retry.
3) What version of the posix shell patch do you have?
# swlist -l product|grep posix
4) Are the users home directories on NFS mount points?
5) Is NIS involved?
6) Any patches been applied recently?
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 04:13 AM
04-08-2003 04:13 AM
Re: POSIX
The Posix shell for HP-UX is '/sbin/sh' for the shell with statically linked libraries (required by root!) and '/usr/bin/sh' for normal use with dynamically linked libraries.
The use of '/usr/bin/sh' for non-root users reduces memory consumption.
The '/bin' directory is a transition-link for compatability with old (pre-10.0) releases. You can note that '/bin' is a symbolic link to '/usr/bin'. The "t" denotes a transition link (not a sticky bit! here:
lr-xr-xr-t 1 root sys 8 Aug 20 1997 /bin -> /usr/bin
Similarly, '/bin/posix' is a directory with the following entry:
lr-xr-xr-t 1 root sys 11 Aug 20 1997 sh -> /usr/bin/sh
Thus, '/bin/posix/sh' is really only a symbolic (transition) link to '/usr/bin/sh'.
Regards!
...JRF...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 04:15 AM
04-08-2003 04:15 AM
Re: POSIX
10.20
PHCO_27804
root can sh fine.
When I try to sh as a normal user it hangs with /usr/bin/sh, /sbin/sh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 04:18 AM
04-08-2003 04:18 AM
Re: POSIX
No nis involved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 04:26 AM
04-08-2003 04:26 AM
Re: POSIX
I'm assuming static NFS mounts, if you are using AUTOFS let me know. Also can you confirm how users access the server, i.e. telnet/CDE.
First thing to check is the NFS mount point is reported in bdf and you can cd to it as root. Also check the syslog/dmesg for any related errors.
One gotcha I have seen is the shell history file being in the home directory on NFS mount points. If you have change one users profile to have the HISTFILE pointing to /tmp or so forth and retry the login.
Also ensure the ksh patch is the same version as this posix one, PHCO_27803.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 06:17 AM
04-08-2003 06:17 AM
Re: POSIX
Strange problem with root. It says HISTFILE=//.sh_history.
Using both telnet and CDE. Neither one works with sh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 06:19 AM
04-08-2003 06:19 AM
Re: POSIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 06:59 AM
04-08-2003 06:59 AM
Re: POSIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 07:18 AM
04-08-2003 07:18 AM
Re: POSIX
Not so good but recoverable. If you have a good ignite image it may be worth applying it, otherwise find all the kernel patches you have installed from PHKL_16751 and re-install them. Its called a LITS (Line in the sand) patch, it sets a baseline for your OS. What you have done by re-installing it is roll back your OS to that point. Maybe one of the HP guys can dig you out a document that describes the recovery procedure but I'm sure it is just reinstalling the other kernel patches.
Regards,
James.