- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: No Shell
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-17-2009 07:20 AM
тАО08-17-2009 07:20 AM
No Shell
I have an issue that i have never come across before. I have 1 user on a server who cannot login. When they connect using Putty and put in the login id and password the session is terminated. It is as if they had /usr/bin/false in /etc/passwd but they dont. This is the password entry;
wrops:p3ixIRQI1gw4.:8101:154:Ops,,,:/home/wrops:/usr/bin/sh
Also, if i try to su to this user i get a reply
su: No shell
Memory fault
This is only happening with this one user and i wonder if anyone has come across this before and might have some ideas on where to look??
FYI, We are using NIS so i dont know if that makes any difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2009 08:06 AM
тАО08-17-2009 08:06 AM
Re: No Shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2009 08:15 AM
тАО08-17-2009 08:15 AM
Re: No Shell
cat -v /etc/passwd
2. Check permissions on / are 755
3. Check that permissions on /usr and /usr/bin are 555
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2009 08:20 AM
тАО08-17-2009 08:20 AM
Re: No Shell
What are the permissions of the /usr/bin/sh :
/home/markme/bin# ll /usr/bin/sh
-r-xr-xr-x 2 bin bin 681016 Jun 18 2008 /usr/bin/sh
If the shell appears to be ok, validate the passwd file with 'pwck' in case there is something on toward - is this user the last entry in the file ?
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2009 08:28 AM
тАО08-17-2009 08:28 AM
Re: No Shell
also, what do the following return:
1) ls -l /usr/bin/sh
2) ls -l /etc/shells
3) if (2) finds a file, then
cat /etc/shells
Can you set that user to something like ksh, and if so, does that work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2009 11:46 PM
тАО08-17-2009 11:46 PM
Re: No Shell
Luckily 95% of users on this box are in the same group, hence no problems reported.
So changed it back and it all works now. Thanks to all help and suggestions offered.