HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/passwd is removed
Operating System - HP-UX
1837095
Members
2304
Online
110112
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-02-2004 08:13 AM
10-02-2004 08:13 AM
/etc/passwd is removed
The file /etc/passwd is renamed, so we can`t login to the system by any account, if there`s any trick to bypass the root password and retain the passwd file.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2004 08:36 AM
10-02-2004 08:36 AM
Re: /etc/passwd is removed
I think that you can login by shutting down (in your case, that means plugging the plug) and then coming up in single-user mode.
Shutdown.
Power back up.
When you get the console prompt, press.
BOOT PRI
Interact with ISL? Y
ISL> hpux -is
That should bring you up as uid 0 without a prompt.
Next mount /usr.
You can then copy /usr/newconfig/etc/passwd to /etc/passwd.
Umount /usr
sync
and reboot.
If this fails, it's time to boot from your Recovery CD.
Shutdown.
Power back up.
When you get the console prompt, press
BOOT PRI
Interact with ISL? Y
ISL> hpux -is
That should bring you up as uid 0 without a prompt.
Next mount /usr.
You can then copy /usr/newconfig/etc/passwd to /etc/passwd.
Umount /usr
sync
and reboot.
If this fails, it's time to boot from your Recovery CD.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2004 02:51 AM
10-03-2004 02:51 AM
Re: /etc/passwd is removed
If your /etc/passwd got removed you can copy the /etc/opasswd file to /etc/passwd
Shine
Shine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2004 03:06 AM
10-03-2004 03:06 AM
Re: /etc/passwd is removed
I'd seen this years back; what I did was reboot (w/ ISL) to single-user, then did:
cat root::(the rest of the root login line in /etc/passwd) > /etc/passwd
once there was a passwd file for root to log in, I changed the root pw, then was able to restore the original pw file.
cat root::(the rest of the root login line in /etc/passwd) > /etc/passwd
once there was a passwd file for root to log in, I changed the root pw, then was able to restore the original pw file.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP