- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/passwd gone!!!!
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
07-02-2007 08:18 AM
07-02-2007 08:18 AM
/etc/passwd gone!!!!
The system comes up and begins to complain about no root user exists...! WHAT! I imediately got on the phone with HP. After getting to the shell in single user mode, we figured out that the /etc/passwd, /etc/shadow, and /etc/group fils were missing! This system has only been up for a week and I had not yet put our backup client on there! Luckily, we were able to recover the default files from the /usr/newconfig/etc folder. I only need to recreate one user and two groups.
HOWEVER, now there are a few things I have noticed that don't work anymore. First, my beloved Sytem Management Homepage can not be started. Next, we had ssh enabled and telnet disabled...that is now switched.
1) How do I get these things back to the way I had it, SMH working, SSH enabled, and telnet disabled?
and...
2) What else should I look for that may be broken now that the files had to be reverted back to defaults?
Thanks for all you guru's out there for helping me in the past...it sucks being a newbie! Hope I sound clear and you can offer some advice!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 08:27 AM
07-02-2007 08:27 AM
Re: /etc/passwd gone!!!!
I assume somebody was root and gave some commands a try. You have to reverse all steps. To be safe, I would consider to install the system again.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 09:14 AM
07-02-2007 09:14 AM
Re: /etc/passwd gone!!!!
Cold install not really ideal at this point because this would push our project schedule back a week or two while I reconfigure! But if I must...then relunctantly I will. Unfortunately, re-imaging is not possible since this is the only HPUX server we have thus far!
I just can't figure out what I did. Maybe I'll use this as a push to get auditing software that can capture sessions!!!
Thanks...keep em coming!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 03:52 PM
07-02-2007 03:52 PM
Re: /etc/passwd gone!!!!
being a new server, you will be in a position to try it even reluctantly. But yo cant do that later.
You may have trouble later unless you make sure what all are really missing.
this entry controls the telnetd
grep telnet /etc/services
telnet 23/tcp # Virtual Terminal Protocol
alo you may reinstall the ssh software.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 04:09 PM
07-02-2007 04:09 PM
Re: /etc/passwd gone!!!!
You could use swverify to check to see what's missing. But this may not check the config files in /etc/ or /var/.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 05:16 PM
07-02-2007 05:16 PM
Re: /etc/passwd gone!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 07:17 PM
07-02-2007 07:17 PM
Re: /etc/passwd gone!!!!
Since you're not sure what has happened to the system and have no system to compare with you cannot be 100% sure it's just those files you mentioned that are missing.
You have to ask yourself the question what's worse to happen :
1) being set back one or two weeks and end up with a stable system.
2) try to repare what you have, take the system in production and find out there's more hidden problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 01:45 AM
07-03-2007 01:45 AM
Re: /etc/passwd gone!!!!
Thanks again. I'll wait for responses today then make my case to the powers that be this afternoon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 02:29 AM
07-03-2007 02:29 AM
Re: /etc/passwd gone!!!!
Try rebuilding your group and passwd files
initially for the important users and you can build it completely at later.
Under /etc directory search for any old passwd and group files, if not get the default files from HP CDs and get the users info from the available home directories on the system and add them with commands:
#groupadd -g gid
#useradd -u uid -g gid -m -s /usr/bin/ksh -c "details of the user"
Srinivas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 03:23 AM
07-03-2007 03:23 AM
Re: /etc/passwd gone!!!!
Once I get more systems in then I will be using ignite! Going to have HP analize my log files. Boss want to know exactly what happens before we go rebuilding so we don't make the same mistaskes. Thanks to all who helped. I am closing this as it seems the only safe bet is to re-install!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 03:24 AM
07-03-2007 03:24 AM
Re: /etc/passwd gone!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 07:11 PM
07-03-2007 07:11 PM
Re: /etc/passwd gone!!!!
No need at all to have a second HP-UX system to make good use of Ignite.
Hmm, just checked http://docs.hp.com/en/IUX/overview.html and if someone is unfamiliar with Ignite I can understand one might think you actually need more system to make good use of it.
make_tape_recovery is being mentioned but it's at the bottom of the page.