- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/passwd file was renamed & system is not a...
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
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
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
тАО03-14-2001 01:57 AM
тАО03-14-2001 01:57 AM
unlucky guy renamed the /etc/passwd file while he was shifting users & forgot to bring it back
Now the system is not accessible he tried hpux -is but it gave him :
fix root entry in the passwd file & reboot .
he is not able to get system prompt
what should he do to resolve this matter ?
O.S hpux11
any help is highly appreciated .
TIA
S.N.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2001 03:17 AM
тАО03-14-2001 03:17 AM
Solutionhpux -is you should get a prompt.
Then just rename the moved file back
to /etc/passwd
or
add a root user to it, you can add it with
normal password file syntax
Name:Password: UserID:PrincipleGroup:Gecos: HomeDirectory:Shell
passwd root
at the prompt
The passwd file is overlooked on hpux -is
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2001 03:37 AM
тАО03-14-2001 03:37 AM
Re: /etc/passwd file was renamed & system is not accessible
This does not require /etc/passwd, so should give you ample opportunity to move the passwd file back, or copy /usr/newconfig/etc/passwd to /etc/passwd.
Exceptions would be if you were running in trusted mode!
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2001 03:39 AM
тАО03-14-2001 03:39 AM
Re: /etc/passwd file was renamed & system is not accessible
If you can't boot with "hpux -is", you could try to boot from the Recovery CD, and from the recovery shell you can mount the root disk and modify the /etc/passwd.
If you use LVM, in manual "Support Media User's Manual" P/N: 92453-90081 say you how activate LVM.
Regards and good luck !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2001 04:16 AM
тАО03-14-2001 04:16 AM
Re: /etc/passwd file was renamed & system is not accessible
all of you are right , the problem was it keeps
on asking init 0 fix root entry in the /etc/passwd file i tried ctrl-c to get rid of it but i could not .
finally i switched the console off & on & then i get the prompt .
many thanks to all of you
Regards
S.N.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2001 06:44 AM
тАО03-14-2001 06:44 AM
Re: /etc/passwd file was renamed & system is not accessible
We had one security person who was cleaning up the password file and sorted it.
This was a version on our security server that gets rcp'd to all the rest of the 250 servers.
Needless to say, it took hours of time from several people to go thru and boot each server into single user mode and restore a good password file.
That security person is no longer with the company because he made a few more bonehead mistakes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2001 01:26 PM
тАО03-29-2001 01:26 PM
Re: /etc/passwd file was renamed & system is not accessible
Do you have a make_recovery tape?
Nancy Brzezinski
Alterra Healthcare