- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- no shell 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
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
тАО04-01-2010 09:48 PM
тАО04-01-2010 09:48 PM
no shell prompt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2010 11:30 PM
тАО04-01-2010 11:30 PM
Re: no shell prompt
Does the user have a customized .profile or other login script?
The user might have included something equivalent to "unset PS1" or "PS1=''" to his login script, which would make the user's prompt a null string. This is a common result when the user is learning to customize his/her shell prompt and makes a mistake. I did this once or twice when I was a Unix newbie :-)
Or the user's login script might contain some commands that cause an endless loop or recursion, so the shell can never reach the end of the login script.
To see what's going on, the sysadmin might temporarily add something like this to /etc/profile (replace "testuser" with the username of the user that has the problem):
if [ $(whoami) = "testuser" ]; then
set -x
fi
This will cause all login script commands to be echoed to the screen just before executing them, so the script execution can be traced.
Such a debugging output may prevent the user from using tools like scp, rcp or rdist, so remember to remove the extra commands from /etc/profile once the problem is solved.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2010 12:07 AM
тАО04-02-2010 12:07 AM
Re: no shell prompt
1) if it is autofs mounted user home directory,
check if the home can be mounted
2) often it is opening mail inbox, so check if the inbox is not locked for instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2010 02:23 AM
тАО04-02-2010 02:23 AM
Re: no shell prompt
UNIX95=EXTENDED_PS ps -H -fu hung-user
It could be hung on quotas. Do you see the /etc/motd? Do you have any output from ~/.profile that could give you any idea where it is hanging?
>Laurent: if it is autofs mounted user home directory
Typically if this happens, it will log you in to / and tell you that it couldn't cd to your home directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2010 03:49 AM
тАО04-02-2010 03:49 AM
Re: no shell prompt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2010 08:46 PM
тАО04-02-2010 08:46 PM
Re: no shell prompt
Possibly. I have NIS automounted home directory and many times I login without my home directory. Not sure if hard mounted?