- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- can not get back the terminal prompt
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
09-23-2003 11:10 AM
09-23-2003 11:10 AM
I recently move several users' home dir to from an HP 10.20 box to an HP 11.00 box and found out the strange thing.
Users can login from any hpux machines in our NIS domain but can not get the terminal prompt without a "ctrl + c".
User can login from any sun solaris machines without this problem.
We are using NIS/NFS/Automomt for user's home file system.
Thanks,
Jane
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 11:50 AM
09-23-2003 11:50 AM
Re: can not get back the terminal prompt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 11:57 AM
09-23-2003 11:57 AM
Re: can not get back the terminal prompt
Yes, I have changed NIS/passwd file entries and pushed to all the slave server.
In our NIS domain, all the file server's homes has been exported and available to the nodes in netgroup.
I checked everywhere and all the scripts are available. I even made a .profile in one user's home dir, it first execute /etc/profile and then the user's .profile, after this, it stopped until I press CTRL-C to get the prompt back. Typing pwd and the user's home showed the new location. I chose another Sun solaris to login, everything is fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 12:44 PM
09-23-2003 12:44 PM
Re: can not get back the terminal prompt
Don't do it as root, do it as the user. Perhaps but some echo statements in the .profile to track down where you hang.
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
09-23-2003 03:28 PM
09-23-2003 03:28 PM
Re: can not get back the terminal prompt
set -x
This will trace each step of the login profile. If the hang occurs after /etc/profile, it is likely in the user's .profile (this assumes standard POSIX shell /usr/bin/sh)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2003 05:29 AM
09-24-2003 05:29 AM
Re: can not get back the terminal prompt
Added set -x in the begining of /etc/profile as well as $HOME/.profile, It just stopped after sourcing .profile and hang.
I renamed /etc/profile and $HOME/.profile so when I open the terminal console, those profile will not be sourced.
However when I echo $PATH. It is very long PATH with some applications executible there.
When and where this is set up in the $PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2003 12:46 PM
09-24-2003 12:46 PM
Solutionexport HISTFILE=$HOME/.sh_history
then that is probably the problem. The shell history file requires file locking that is problematic in NFS. Change the HISTFILE value to a local filesystem such as: export HISTFILE=/var/tmp/$LOGNAME.sh.history
PATH is set by /etc/profile by reading the file: /etc/PATH
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 09:58 AM
09-25-2003 09:58 AM
Re: can not get back the terminal prompt
Thanks for solving my problem, now that I added .profile to those user's home dir with the line:
export HISTFILE=/var/tmp/$LOGNAME.sh.history
I also add one more file .Xdefault so it can be sourced.
One thing still puzzled me is that the usr's HISTFILE is defind in a startup script sourced in /etc/profile
# HISTFILE
set -o vi
export HISTFILE=~/.sh_history${os}
So after I moved user's file to the new loc I also changed the account to point to the new loc. "~" should be able to point to the new loc. Why this is not working as it should be?
Your solution is working but the users' history files spreads all over the machines she/She login in our NIS instead of his/her home. Do you think we can improve this?
Thanks
Jane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 11:10 AM
09-25-2003 11:10 AM
Re: can not get back the terminal prompt
Start by adding: LOCKD_OPTIONS="-p 4045" to the etc/rc.config.d/nfsconf, and MOST important, add ALL the latest NFS patches to boyh server and client. NFS is not nearly as stable as a local filesystem and if patching is not an option, you'll have to live with the local shell histories scattered around on all the systems.
Bill Hassell, sysadmin