- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/passwd file corrupt
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
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
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
09-18-2008 01:18 AM
09-18-2008 01:18 AM
/etc/passwd file corrupt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:34 AM
09-18-2008 01:34 AM
Re: /etc/passwd file corrupt
restore the password file from the backup.
Else try 'pwck' (see 'man pwck') or use SAM to check/change for things/nonprintable characters in the passwd file.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:40 AM
09-18-2008 01:40 AM
Re: /etc/passwd file corrupt
Best thing would be to recover the /etc/passwd file from backup.
Regards,
Vihang.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:44 AM
09-18-2008 01:44 AM
Re: /etc/passwd file corrupt
if backup does not exits and there exists same passwd file in another server, perhaps you can ftp, or boot from recover cd and restore a passwd file from scratch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 02:27 AM
09-18-2008 02:27 AM
Re: /etc/passwd file corrupt
Do you have back up of /etc/passwd file?
If yes, then restore it.
If you don't have a back up, then try to recreate the passwd file. Look in to any other server for structure of passwd file. Look in the /home directory to get the username.
But If there is more no: of users with complex usage of user ID and group ID's, its difficult.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 02:51 AM
09-18-2008 02:51 AM
Re: /etc/passwd file corrupt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 04:21 AM
09-18-2008 04:21 AM
Re: /etc/passwd file corrupt
Then do vi /etc/passwd & create new file
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 04:37 AM
09-18-2008 04:37 AM
Re: /etc/passwd file corrupt
Not having a backup of critical configuration files is very poor admimistration, I'm sorry to say. If you cannot run 'pwck' as noted or munge the corruption, you can always find a "starter" file as:
'/usr/newconfig/etc/passwd'
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 06:34 AM
09-18-2008 06:34 AM
Re: /etc/passwd file corrupt
/usr/newconfig is the best to have a fresh format of /etc/passwd. so, better try it and edit accordingly.