- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root commands hangs
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
Discussions
Discussions
Forums
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
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
тАО08-12-2010 11:18 PM
тАО08-12-2010 11:18 PM
root commands hangs
I have an old HP-UX 11.11
and I got problem with it yesterday
my users said that they can't access server via ssh
I'm getting this
ssh_exchange_identification: Connection closed by remote host
but I able to login with telnet , and can issue any commands under my user and when I became root I can't run any command
all commands hangs
nothing interesting in the logs:(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2010 11:20 PM
тАО08-12-2010 11:20 PM
Re: root commands hangs
How do you become root? su or su -?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2010 11:54 PM
тАО08-12-2010 11:54 PM
Re: root commands hangs
I've tried just "su -"
not I become root with "su"
and all good
probably something happens with ~/.profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2010 11:57 PM
тАО08-12-2010 11:57 PM
Re: root commands hangs
Telnet is lightweight compared to ssh.
Can you run single commands with 'sudo' or 'su root -c'?
For instance:
$ sudo ls
or
$ su root -c "/usr/bin/ls"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2010 11:58 PM
тАО08-12-2010 11:58 PM
Re: root commands hangs
In the default .profiles, a check is performed to see when you last logged in and if you have new E-mail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2010 11:59 PM
тАО08-12-2010 11:59 PM
Re: root commands hangs
Yes. You can add "set -x" to trace your execution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2010 12:02 AM
тАО08-13-2010 12:02 AM
Re: root commands hangs
If nothing is working from other users as well they probably you may have to reboot.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2010 12:21 AM
тАО08-13-2010 12:21 AM
Re: root commands hangs
all good with system ( memory, CPU, process table)
root cause of ssh problem probably was in
MaxStartups option
ps -ef | grep ssh shows me 11 processes but
this option has just 10
I've increased it to 20 , send HUP signal to ssh daemon... and now I have not any problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2010 03:37 AM
тАО08-13-2010 03:37 AM
Re: root commands hangs
root had in profile this
export PATH=/opt/lib/cobol/bin:$PATH
with this string I can't issue commands
I've fixed this with:
export PATH=$PATH:/opt/lib/cobol/bin
....
but
I have another one string in ~/.profile:
export PATH=/tuxedo/tuxedo8.0/bmrs/lib:$PATH
and I have not any problems with it...
PS
don't know how it worked earlier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2010 04:16 AM
тАО08-13-2010 04:16 AM
Re: root commands hangs
nice, /opt/ located on the external disk (Fiber Channel)
and this disk is unavailable ... (ls /opt/ hangs)