- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Your help on this.!!-/etc/passwd/ file has been co...
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
Forums
Discussions
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
01-24-2011 06:35 PM
01-24-2011 06:35 PM
Your help on this.!!-/etc/passwd/ file has been corrupted in my server
how to restore it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2011 06:46 PM
01-24-2011 06:46 PM
Re: Your help on this.!!-/etc/passwd/ file has been corrupted in my server
Start with the command:
pwck
Show the errors reported by pwck. Do you know what happened to corrupt the passwd file? Did someone use vi for /etc/passwd but is not familiar with vi?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2011 11:21 PM
01-24-2011 11:21 PM
Re: Your help on this.!!-/etc/passwd/ file has been corrupted in my server
Adding to bill's comments the pwck is a very useful command that is specifically designed for problems like yours. It would check all the attributes as well as the compulsory and essential fields in /etc/passwd especially in terms of syntax. Probably someone has missed a delimiter ":" while editting the passwd file and that is why changing the fields should be typically done by the firing of the command or by SMH. If users are not that important for some reason and you just want root authentication for login, look for the master template of passwd present in /usr/newconfig (however that is the worst last resort if there is no backup). Attempt to get out of the troubleshooting loop by examining the output of pwck or post output here. :)
Regards
Ismail Azad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2011 09:34 AM
01-25-2011 09:34 AM
Re: Your help on this.!!-/etc/passwd/ file has been corrupted in my server
It is best practice however to have some sort of a gen_dr_file.ksh script that gathers your important system fils on a daily basis and stash them say in /.dr . It's saved us many times.
You can also try rebuilfing your password file from /tcb (that is IF you're system is "trusted"/C2 config).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2011 10:09 PM
01-25-2011 10:09 PM
Re: Your help on this.!!-/etc/passwd/ file has been corrupted in my server
Best Regards,
Ali.