- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
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
тАО01-14-2009 08:13 PM
тАО01-14-2009 08:13 PM
su: No shell
su: No shell
Segmentation fault
#vi /etc/passwd
root:TlhWDUMmhUbG6:0:3::/:/sbin/tcsh
-> not login
lbs:AO21eh5Sbv6MI:2000:101:LBS,,,:/data6/lbs:/usr/bin/tcsh
-> login
#ftp 192.168.0.3
Name (192.168.0.3:lbs): root
530 User root access denied...
Login failed.
#ftp 192.168.0.3
Name (192.168.0.3:lbs): lbs
230 User lbs logged in.
#rcp /tmp/passwd 192.168.0.3:/etc/passwd
remshd: /sbin/tcsh: No such file or directory
remote Server
please help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:20 PM
тАО01-14-2009 08:20 PM
Re: su: No shell
You must never ever do this. The only shell for root is /sbin/sh. Except no substitutes!
After you login, you could invoke tcsh.
The above errors indicate that /sbin/tcsh may not exist at all?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:23 PM
тАО01-14-2009 08:23 PM
Re: su: No shell
root:TlhWDUMmhUbG6:0:3::/:/sbin/tcsh
Optional shell file not found
Invalid root shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:29 PM
тАО01-14-2009 08:29 PM
Re: su: No shell
#vipw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:30 PM
тАО01-14-2009 08:30 PM
Re: su: No shell
> root:TlhWDUMmhUbG6:0:3::/:/sbin/tcsh
-> not login
>lbs:AO21eh5Sbv6MI:2000:101:LBS,,,:/data6/lbs:/usr/bin/tcsh
>-> login
Looks like '/sbin/tcsh' is not available of the system (try '11 /sbin/tcsh' command). I think its recommended that you use '/sbin/sh' instead (as proposed by Dennis already).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:39 PM
тАО01-14-2009 08:39 PM
Re: su: No shell
lckpwdf: Permission denied
vipw: Cannot obtain lock for /etc/.pwd.lock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:42 PM
тАО01-14-2009 08:42 PM
Re: su: No shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:47 PM
тАО01-14-2009 08:47 PM
Re: su: No shell
#usermod -s root /sbin/sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:53 PM
тАО01-14-2009 08:53 PM
Re: su: No shell
rm: .pwd.lock Permission Denied
#usermod -s root /sbin/sh
Permission Denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 09:07 PM
тАО01-14-2009 09:07 PM
Re: su: No shell
Are you root? What does id(1) show?
If you aren't root, you will have to go into single user mode.
>Venkatesh: I think it's recommended that you use '/sbin/sh' instead
This is NOT just a recommendation, this is a hard requirement.