- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recovering the root user account
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
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
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
тАО11-06-2007 07:56 AM
тАО11-06-2007 07:56 AM
Recovering the root user account
Is it possible for someone to delete the root user account, and if so how can the account be recovered? The system in question is HP-UX 11.11. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2007 08:01 AM
тАО11-06-2007 08:01 AM
Re: Recovering the root user account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2007 12:44 PM
тАО11-06-2007 12:44 PM
Re: Recovering the root user account
You need to be able to start on single user mode. (You would need a console to do that)
When "10 second to start..." message display abort startup and start manually, then select "interact ..".
execute:
hpux -is
on this mode you can change root password with
passwd command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2007 12:45 PM
тАО11-06-2007 12:45 PM
Re: Recovering the root user account
If it is the case then you have to restore the old passwd file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2007 02:32 PM
тАО11-06-2007 02:32 PM
Re: Recovering the root user account
If account is deleted then you can recover it by restoring /etc/passwd and /etc/shadow from backup but if account is locked by some reason or if there is any password issue with account then booting system in single user mode and resetting password is best choice.
-=ShRi=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2007 03:23 PM
тАО11-06-2007 03:23 PM
Re: Recovering the root user account
If you are not logged in, you certainly will not be able to log in. I am not sure the system would boot into single-user mode if root doesn't exist.
If the root user is deleted, you may be forced to recover your system from an Ignite/UX make_tape_recovery or make_net_recovery backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2007 03:30 PM
тАО11-06-2007 03:30 PM
Re: Recovering the root user account
Andrew,
You need to boot up
1) single user mode first (hpux -is)
2) cp /usr/newconfig/etc/passwd /etc/passwd
3) init 3
At least you can boot up into multiuser mode and after that restore original password to the system
WK