- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root: 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
01-26-2004 08:17 PM
01-26-2004 08:17 PM
root:/y.QL0TL6uJH.:0:3::/:/sbin/ksh
(/sbin/ksh doesn't exist).
trying to login we receive the following message: "no shell"
We have:
/etc/passwd -r--r--r-- 1 root sys
/etc dr-xr-xr-x 33 bin bin
/sbin dr-xr-xr-x 13 bin bin
We cannot login using bin or adm or sys users because system asks for password we don't know.
It seems to be only root user with 'root' privileges.
Is there a method to bypass the problem or to have root privileges with a another user???
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 08:22 PM
01-26-2004 08:22 PM
Re: root: no shell
What you can do is login as normal user and su to root ( without - ). If this does not work you could try restoring a backup of /etc/passwd with the correct shell, become root and put back the original shell.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 08:23 PM
01-26-2004 08:23 PM
SolutionInstructions for accessing single user mode differ for different OS versions, so if you don't know what to do let us know more details about your system.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 08:32 PM
01-26-2004 08:32 PM
Re: root: no shell
if you boot into single user mode (interrupt boot process, boot pri, hpux -is (boot)then you should be able to change the entry in /etc/passwd from ksh to sh.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 09:11 PM
01-26-2004 09:11 PM
Re: root: no shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 09:27 PM
01-26-2004 09:27 PM
Re: root: no shell
I addition to Makrs command, you could use vipw in the future for editing the passwd file. It also checks the result.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 09:55 PM
01-26-2004 09:55 PM
Re: root: no shell
We entered as normal user in init 3 running level and supplied right shell value in passwd.
Then re-rebooted the system normally.
We do apologise for our english and thanks a lot for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 10:06 PM
01-26-2004 10:06 PM
Re: root: no shell
dato che i ragazzi dell'ITRC ti hanno aiutato e suggerito come risolvere il problema potresti assegnare loro dei punti?
Benvenuto nei forum di ITRC! ;-)
Buona giornata!
Ettore
P.S.: Perfavore non assegnare punti a questo mio post...
Translate in English:
since ITRC guys gave you suggestions about how to solve the problem, could you assign them points?
Welcome in ITRC forum!
Have a nice day!
Ettore
P.S.: please no point for me in this post...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 12:33 AM
01-27-2004 12:33 AM
Re: root: no shell
Bill Hassell, sysadmin