- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/passwd
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
05-09-2001 05:23 AM
05-09-2001 05:23 AM
If you change the entry for the root-shell in /etc/passwd to ksh, is there a possiblity to log into the machine via root account?? ( In moment I got the error message "no shell" )
Thanks
Thomas
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 05:30 AM
05-09-2001 05:30 AM
Re: /etc/passwd
Do *NOT* change root's default shell. It should always be /sbin/sh ( the POSIX shell ).
During startup, only "/" is initially mounted, not /usr, etc. in which shells like 'ksh' live.
Furthermore, /sbin/sh is devoid of any linkages to libraries in /usr.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 05:30 AM
05-09-2001 05:30 AM
Re: /etc/passwd
If you change root's entry to ksh then yes, youre in trouble if you boot in single user mode as /usr is not mounted and this is where ksh lives, and the libraries needed for it.
Leave it as /sbin/sh which is statically linked so it doesnt need any libraries (and thus /usr)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 05:34 AM
05-09-2001 05:34 AM
Re: /etc/passwd
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 05:38 AM
05-09-2001 05:38 AM
Re: /etc/passwd
...and I'd second Clay's comment!
Also, 'vipw' is another useful caution when editting /etc/passwd.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 05:39 AM
05-09-2001 05:39 AM
Re: /etc/passwd
is changed.
Is there still a way to get into the machine to change this entry back ??
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 05:41 AM
05-09-2001 05:41 AM
SolutionI guess you got the message that you can't change it to ksh. If you did this already and need to know a way out of this now then you have to go and boot from the support cd and move the default /etc/passwd in place. After you get the box back up you can move the old passwd file back in place and edit it back to /sbin/sh.
Unfortunally this is a situation where booting into single user mode won't help either, because it won't find the shell for that.
Good luck,
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 05:41 AM
05-09-2001 05:41 AM
Re: /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 05:50 AM
05-09-2001 05:50 AM
Re: /etc/passwd
do you mean the HP-Ux Support Plus ... CD
or the installation CD for HP-Ux 11.00.
Thanks
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 06:16 AM
05-09-2001 06:16 AM
Re: /etc/passwd
Also the entry must be the first one in the file or it will not be found.
We had an admin that sorted the passwd file to make it look better and then the box went stupid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 06:33 AM
05-09-2001 06:33 AM
Re: /etc/passwd
you don't have 2nd root user in your /etc/passwd?? Would come in handy in this situation!
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2001 06:45 PM
05-10-2001 06:45 PM
Re: /etc/passwd
I had this problem once and this is the reply from my local HP support. Never got to try it though cos I managed to restore the file from a network backup. Maybe the forum's experts can comment:
You need to boot as single user mode. To boot to single user mode, during
boot up sequence,
-interrupt the boot process within the 10 sec.
-Choose Y, to Interact with ISL
#BO PRI (or the correct path of your local primary hdd)
#hpux -is (launch hp-ux in single user mode)
#mount /usr and /var (mount the necessary file system)
#vipw (to change the shell in /etc/passwd)