- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HELP!!!!! Password file has been gzipped
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
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
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
тАО08-11-2006 03:23 AM
тАО08-11-2006 03:23 AM
I can't login with any username or passwd.
We backup using fbackups.
Am I going to have to restore from fbackup?
Is there a way to backdoor the passwd file so I can perform gunzip on it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:28 AM
тАО08-11-2006 03:28 AM
SolutionPete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:32 AM
тАО08-11-2006 03:32 AM
Re: HELP!!!!! Password file has been gzipped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:33 AM
тАО08-11-2006 03:33 AM
Re: HELP!!!!! Password file has been gzipped
i think you will have to restore from the fbackup, or if you have an ignite backup you could try to restore it from there, of course the second option will take longer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:34 AM
тАО08-11-2006 03:34 AM
Re: HELP!!!!! Password file has been gzipped
boot pri
Interact with IPL/ISL? Y
hpux -is
This will bring you up in single user-mode as root so you can perform maintenance. You will have to mount /usr and /var manually and an fsck will probably be required for each of those. You can then copy /usr/newconfig/etc/passwd to /etc/passwd which will restore a minimal password file with null passwords or you can restore your /etc/passwd file using frecover.
In the worst case, you may have to boot from your recovery media.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:34 AM
тАО08-11-2006 03:34 AM
Re: HELP!!!!! Password file has been gzipped
i'm thinking i'm going to need to restore from ignite and then restore from last night's backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:40 AM
тАО08-11-2006 03:40 AM
Re: HELP!!!!! Password file has been gzipped
I think your choices depend upon the damage done. You can boot into single user mode and use '/sbin/frecover'. An Ignite recovery is also an option as Rick suggests.
A very helpful practice when running a command that can be disasterous if you're in the wrong directory is to operate thusly:
# cd /path && rm *.log
...now, if '/path' isn't valid, you won't end up removing "*.log" files (in this example) in the last directory you were in!
It's also very good practice to configure root's HOME directory to be something *other than* "/". I like to use '/root'. This too affords another measure of protection for you.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:40 AM
тАО08-11-2006 03:40 AM
Re: HELP!!!!! Password file has been gzipped
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:47 AM
тАО08-11-2006 03:47 AM
Re: HELP!!!!! Password file has been gzipped
i'm afraid that there might have been other files affected by the gzip command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:50 AM
тАО08-11-2006 03:50 AM
Re: HELP!!!!! Password file has been gzipped
Personally, if you are going to use 'frecover' I'd be selective about what I recover until I was sure of what I needed. Build a graph or use include/exclude arguments. Don't be hasty and potentially make matters worse.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:50 AM
тАО08-11-2006 03:50 AM
Re: HELP!!!!! Password file has been gzipped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 03:54 AM
тАО08-11-2006 03:54 AM
Re: HELP!!!!! Password file has been gzipped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 04:16 AM
тАО08-11-2006 04:16 AM
Re: HELP!!!!! Password file has been gzipped
An added note - if you are concerned about other files being potentially gzipped - run a find command in single user mode after all of the file systems are mounted
find / -name *.gz
Then build your frecover graph file from that list
Good Luck
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 04:25 AM
тАО08-11-2006 04:25 AM
Re: HELP!!!!! Password file has been gzipped
I have a SPARE rp2470 box specifically for this system. Everything is identical to the production box.
I was going to ignite this and restore with frecover to this box.
I rebooted from the ignite tape and it is coming up with an fupdate to run. Is this normal? The spare box never had an OS loaded and the PDC may not be up to date. If this is the case, will Ignite update the PDC first before restoring?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 07:05 AM
тАО08-11-2006 07:05 AM
Re: HELP!!!!! Password file has been gzipped
When I try to telnet to the box, the session starts and is immediately killed. At first, I was getting the login prompt, but I don't even get that anymore.
I tried running the ignite tape I used on this sytem for our spare box, just to see if I could restore. I kept getting an 'bad LIF magic' error, even after I cleaned the drive 2 or 3 times. (DAT DDS-4)
Hopefully, the frestore will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 08:28 AM
тАО08-11-2006 08:28 AM
Re: HELP!!!!! Password file has been gzipped
find / -name *.gz
should be:
find / -name '*.gz' so that find rather than the shell will correctly handle '*'.
and I would add 1 more filter since you are looking for regular files:
find / -type f -name '*.gz'
and if you know your bad work was limited to /etc then change the "/" to "/etc".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 02:56 AM
тАО08-15-2006 02:56 AM