- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- No shell message during login
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
07-13-2006 11:32 PM
07-13-2006 11:32 PM
I am trying to connect to my hp-ux server but it is not allowing to login and exit wit "no shell " error.
It seems either the /usr/bin/sh is not available or /usr permission got changed. Is there any way for me to login to the server?
Pls advice.
thanks
S.O
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 11:39 PM
07-13-2006 11:39 PM
Re: No shell message during login
Check the shell in /etc/passwd and make sure it exists with appropriate permissions. It must be read execute.
You should still be able to log into the server from the console as root. Then you can get the appopriate files from another server and restore normal login.
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
07-13-2006 11:40 PM
07-13-2006 11:40 PM
Re: No shell message during login
Then check existance adn permissions on the shell defined in /etc/passwd.
To get into the server, either su via another userid or go to the console.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 12:01 AM
07-14-2006 12:01 AM
Re: No shell message during login
#ll /usr/bin/ksh /usr/bin/sh /usr/bin/csh
-r-xr-xr-x 1 bin bin 155648 Jun 21 2004 /usr/bin/csh
-r-xr-xr-x 2 bin bin 159744 Jul 14 2004 /usr/bin/ksh
-r-xr-xr-x 2 bin bin 204800 Oct 21 2003 /usr/bin/sh
#ll -d /bin
lr-xr-xr-t 1 root sys 8 Sep 3 2003 /bin -> /usr/bin
#ll /etc/passwd
-r--r--r-- 1 root sys 3517 Feb 2 17:53 /etc/passwd
#grep $user_name /etc/passwd
rgs,
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 12:14 AM
07-14-2006 12:14 AM
Re: No shell message during login
I've just tried a few hacks that I use whenever the process table fills, but sadly they still want the shell to exist.
All I can say, is if your account is in LDAP or NIS, then you can change it remotely.
Otherwise, log on as root (/sbin/sh HAS to be there!) and check the shell out that way.
sorry :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 12:26 AM
07-14-2006 12:26 AM
Re: No shell message during login
There are no ways for me to check all this... the minimum requirement is I should login right!!!1. but if it is no allowing to login ...
Thanks
S.O
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 12:44 AM
07-14-2006 12:44 AM
Re: No shell message during login
# man login
...
No shell
The user shell (/usr/bin/sh if shell name is null in /etc/passwd) could not be started with the exec command. Consult system
administrator.
If no root "shell":
* Reset server and boot "single user"
sorry,
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 01:23 AM
07-14-2006 01:23 AM
SolutionThen from there you can troubleshoot your other login issues.
roots default shell is /sbin/sh, so you should be able to login. If you get the same thing for root then your only choice may be single-user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 02:58 AM
07-14-2006 02:58 AM
Re: No shell message during login
Thanks for your solution.
But i took a different one.
I am the remote adm and i can ftp to the system using root.(direct root login is not possible for me.).
I ftp ed to the system and used chmod to change the permission of directories under /.
I could login after that.
Thanks everybody.
S.O
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 03:03 AM
07-14-2006 03:03 AM
Re: No shell message during login
good luck though.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com