- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Root shell mangled in passwd file; now can't g...
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-25-2002 11:53 AM
07-25-2002 11:53 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 11:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 12:00 PM
07-25-2002 12:00 PM
Re: Root shell mangled in passwd file; now can't get into root user
Can you ftp to the system using root? You can copy the passwd file to another system, make the change and ftp it back.
HTH
Marty
P.S. I usually set up a pseudo root account (username/password with UID=0) to handle problems like this. You might consider doing the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 12:10 PM
07-25-2002 12:10 PM
Re: Root shell mangled in passwd file; now can't get into root user
#cp /etc/passwd /tmp/passwd.mangled
#cp /etc/passwd /tmp/passwd
now edit the /tmp/passwd file to correct the shell
ftp to the same host with root
cd /tmp
lcd /etc
put passwd
bye
I think this should work
Never tried though !
Goodluck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 12:12 PM
07-25-2002 12:12 PM
Re: Root shell mangled in passwd file; now can't get into root user
Try to get /etc/passwd file with a ftp in ascci mode. Then modify mangled line with a text editor, so replace it with ftp (ascci)in /etc.
Rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 12:59 PM
07-25-2002 12:59 PM
Re: Root shell mangled in passwd file; now can't get into root user
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 03:57 AM
07-26-2002 03:57 AM
Re: Root shell mangled in passwd file; now can't get into root user
Sometimes I wonder if root should just be BUILT into the kernel.
live free or die
harry