- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "No shell" error when a user try to 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
11-21-2007 01:45 PM
11-21-2007 01:45 PM
"No shell
Bus error"
The telnet session will then exit within 10 sec. I tried to login with root and is able to do so.
Appreciate your kind advice on this matter.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 01:55 PM
11-21-2007 01:55 PM
Re: "No shell" error when a user try to login
One cause of 'No shell' for login/su can be a space
at the end of an entry in the password file (/etc/passwd)
associated with the user.
Another cause is /usr set to 744 (i.e. drwxr-r--). After
adding execute for group and others (i.e. chmod 755 /usr),
su and login/telnet/rlogin worked again without complaint.
So, if /, /usr, or /usr/bin are set to 744 or 644 (i.e.
not executable by others), su and login will fail with
"No shell".
my 2 cents
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 02:14 PM
11-21-2007 02:14 PM
Re: "No shell" error when a user try to login
Thanks & Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 03:02 PM
11-21-2007 03:02 PM
Solution(or NIS, or wherever) for a problem user?
What are the permissions on that shell and on
the directories leading down to it?
> I've also changed the mode of /usr to 755
> (originally was 666).
If /usr wasn't 755, then I'd guess that
someone changed it. If someone changed that,
then someone could have changed anything.
> [...] all users (except root privilege
> users) [...]
I know nothing, but it sounds as if you may
have too many root privilege users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 03:16 PM
11-21-2007 03:16 PM
Re: "No shell" error when a user try to login
What error do you get when you logon as root and do a 'su - user'
revert
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 04:01 PM
11-21-2007 04:01 PM
Re: "No shell" error when a user try to login
[...]
DIAGNOSTICS
The following diagnostics appear if the associated condition occurs:
[...]
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.
[...]
Which suggests that the specified shell is
bad somehow, which could include permission
problems of various kinds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 04:13 PM
11-21-2007 04:13 PM
Re: "No shell" error when a user try to login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 05:02 PM
11-21-2007 05:02 PM
Re: "No shell" error when a user try to login
And /usr/lib, etc.
>If someone changed that, then someone could have changed anything.
Right, time to use "swverify \*".
(And after collecting the info, add -F to fix the permissions.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 05:49 PM
11-21-2007 05:49 PM
Re: "No shell" error when a user try to login
1. The shell specified is /usr/bin/ksh.
Permission for /usr/bin is drw-rw-rw- (666).
2. Permission for ksh is r-xr-xr-x (555).
3. The error is "su:No shell
Bus error"
4. There is no "/etc/shells"
5. Permission for /usr/lib is
drw-rw-rw- (666).
Thanks & Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 06:15 PM
11-21-2007 06:15 PM
Re: "No shell" error when a user try to login
Around here, it looks like this:
dy # ls -ld /usr/bin
dr-xr-xr-x 5 bin bin 16384 Nov 20 01:17 /usr/bin
I have a non-root user with the shell
/usr/local/bin/bash, and changing the
permissions on /usr/local/bin to 666 gives
me a problem like yours:
dy # ls -ld /usr/local/bin
drwxrwxr-x 2 bin bin 8192 Oct 24 10:56 /usr/local/bin
dy # su sms
dy # exit
dy # exit
dy # chmod 666 /usr/local/bin
dy # su sms
su: No shell
dy #
Someone seems to have messed up your stuff
pretty badly. Because none of us knows
exactly _how_ badly (or where), I like the
swverify suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 06:18 PM
11-21-2007 06:18 PM
Re: "No shell" error when a user try to login
>Permission for /usr/bin is drw-rw-rw- (666).
>5. Permission for /usr/lib is drw-rw-rw- (666).
As suspected by WK & Steven, your system is seriously broken! You should do:
# swverify -F \*
You may have to repair a few directories first:
# chmod a+x / /usr/lib /usr/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 06:24 PM
11-21-2007 06:24 PM
Re: "No shell" error when a user try to login
tell so many people what it is. (Or, if
_you_ messed up this stuff, get someone else
to change the root password, and not tell
_you_ what it is.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 09:33 PM
11-21-2007 09:33 PM