- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- su: 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
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
08-19-2007 08:54 PM
08-19-2007 08:54 PM
after this weekend we've found one of our itanium servers unaccessible. only root user can login to it.
'su' complains:
[cut]
(svback2)/>su - sergey
su: No shell
[cut]
/etc/passwd entry looks quite ok to me:
[cut]
(svback2)/>grep sergey /etc/passwd
sergey:xxxxxxxxxxx:108:20::/home/sergey:/usr/local/bin/bash
[cut]
i have truss output. there's couple of strange things in it.
1. chdir() syscal failed with EACCES, while
[cut]
(svback2)/>ll -d /home
dr-xr-xr-x 42 bin bin 8192 Aug 16 11:02 /home
(svback2)/>ll -d /home/sergey
drwxr-xr-x 12 sergey users 8192 Aug 17 11:40 /home/sergey
[cut]
and same strange thing with execve syscall.
(svback2)/>ll /usr/local/bin/bash
-rwxr-xr-x 1 root sys 1552184 Aug 9 2006 /usr/local/bin/bash
(svback2)/>ll -d /usr/local/bin
dr-xr-xr-x 2 bin bin 8192 Apr 27 15:39 /usr/local/bin
(svback2)/>ll -d /usr/local
dr-xr-xr-x 17 bin bin 8192 Apr 27 15:29 /usr/local
(svback2)/>ll -d /usr
dr-xr-xr-x 22 bin bin 8192 Jan 31 2007 /usr
[cut]
we've tried to reboot this server. it doesn't helped. but in /var/adm/rc.log one strange thing appeared, which wasn't there before:
[cut]
Clean UUCP
Output from "/sbin/rc2.d/S202clean_uucp start":
----------------------------
cleaning up uucp
/usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.
/sbin/rc2.d/S202clean_uucp[42]: 721 Abort
ERROR CODE 134
"/sbin/rc2.d/S202clean_uucp start" FAILED
[cut]
uld.so and dld.so are OK and accessible (compared to alive system), their MD5 hashes matches.
i have no clue what heppend there. pls help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2007 09:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2007 09:13 PM
08-19-2007 09:13 PM
Re: su: No shell
Check the permissions of /usr/lib/hpux32/dld.so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2007 09:17 PM
08-19-2007 09:17 PM
Re: su: No shell
su no shell message:-
The problem could be because of incorrect permissions and / or ownerships on the
root directory. It should be:
# ll -d /
drwxr-xr-x 31 root root 5120 Mar 29 04:19 /
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2007 09:38 PM
08-19-2007 09:38 PM
Re: su: No shell
Awadhesh and whiteknight both were right. prmissions on / was 700. i changed 'em to 755 and and everything began to work again.
thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:21 PM
08-20-2007 05:21 PM
Re: su: No shell
Do you need to ask the meta question how it got that way?
I think "swverify \*" would catch other bad system directories.