- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Your help on this.!!-/etc/passwd/ file has bee...
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
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
тАО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.