- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root user has been deleted!
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-18-2006 04:24 AM
01-18-2006 04:24 AM
Wouldn't I be able to reboot into single user mode and modify the password file, or do I have to boot from CD? Any suggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 04:30 AM
01-18-2006 04:30 AM
Re: Root user has been deleted!
By deleted, do you mean that there is no uid 0 entry in /etc/passwd? If so, I would not recommend trying to boot into single user mode, since that automatically logs you in as uid 0. Never having used the recovery CD, I'm not sure whether that would help or not.
Can you restore a copy of the password file from backup or copy it from another machine? Or copy it to another machine, edit it and copy it back?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 04:30 AM
01-18-2006 04:30 AM
SolutionOnce you're in single user mode, you should be able to append an entry for root like so:
echo "root::0:3:/:/sbin/sh" >> /etc/passwd
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 04:35 AM
01-18-2006 04:35 AM
Re: Root user has been deleted!
Once there, make the root entry in the /etc/passwd file
UID=0 and GID=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:06 AM
01-18-2006 05:06 AM
Re: Root user has been deleted!
Its good to boot in single user mode and restore the passwd file from backup.
Then take a reboot or init 4.
Hope this will help.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:25 AM
01-18-2006 05:25 AM
Re: Root user has been deleted!
I assume this machine is not part of an NIS domain or ldap where root access may not authenticate to /etc/passwd (though this scenario is crazy).
You might wish to look into the cause after fixing it.
bdf /
If the root filesystem is nearly full, there is a nasty characteristic of HP-UX 11.00 that when root hits 100% /etc/group gets hammered. Sometimes other important files.
You need to after fixing this run some management scripts to check system health on this box regularly. I'm assuming this was not a vi screwup and the actual cause is a mystery.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 03:13 AM
01-20-2006 03:13 AM
Re: Root user has been deleted!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 03:17 AM
01-20-2006 03:17 AM
Re: Root user has been deleted!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 03:38 AM
01-20-2006 03:38 AM
Re: Root user has been deleted!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 06:22 AM
01-20-2006 06:22 AM
Re: Root user has been deleted!
Its a good practice to assign some points to those responses who tried to help you.
Your profile:
"I have assigned points to 1 of 12 responses to my questions"
Try to make 12 of 12 , and make forum profile better.
Happy fouruming.
hth,
Raj.
* 0 point pls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:19 AM
01-26-2006 09:19 AM