- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- corrupted root user name in passwd file
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
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-02-2006 09:33 PM
тАО01-02-2006 09:33 PM
corrupted root user name in passwd file
I have mistakenly edit the username of root in the passwd file while doing maintainence work on another user.
The root username is now 'soot' as opposed to 'root'. I thought it might be as simple as using this username and reset the password file i.e. su - soot... but it does not work. I get the unknown ID error message.
Has anybody seen this before. I would like to try and resolve this before I reboot into single user mode...
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 09:41 PM
тАО01-02-2006 09:41 PM
Re: corrupted root user name in passwd file
Do you have any other super user account??
Then change the soot to root by editing the passwd file.
Otherwise restart in single user mode & do the changes.
Please see the the following thread..
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=865159
regards,
shameer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 09:45 PM
тАО01-02-2006 09:45 PM
Re: corrupted root user name in passwd file
I added a +root one time in the passwd file, the only way I could solve this was to reboot into single user mode.
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 09:47 PM
тАО01-02-2006 09:47 PM
Re: corrupted root user name in passwd file
perhaps you have inserted some kind of garbage character in the username. Long shot, but try this:
$ grep soot /etc/passwd| awk -F: '{print $1}'| od -x
when I do it for root on a system here it shows:
0000000 726f 6f74 0a00
0000005
perhaps other than "72" (=r) is different in your output?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 09:54 PM
тАО01-02-2006 09:54 PM
Re: corrupted root user name in passwd file
grep soot /etc/passwd| awk -F: '{print $1}'| od -x
0000000 736f 6f74 0a00
0000005
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2006 03:21 AM
тАО01-06-2006 03:21 AM
Re: corrupted root user name in passwd file
Barring something like that you are probably going to have to schedule a maint window to bring it down and reboot into single user mode. I would fix a copy and move it into place even with the reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2006 06:04 AM
тАО01-06-2006 06:04 AM
Re: corrupted root user name in passwd file
In either case, it looks like single user mode is required but be sure you know whether to fix just /etc/passwd or also fix /tcb.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 03:43 AM
тАО01-23-2006 03:43 AM
Re: corrupted root user name in passwd file
u need to boot the machine in single user mode and rename soot to root.
Do the following step..
#shutdown -yr 0
Press Esc key in keyboard
In the current menu press a to go to administrative mode. type..
boot pri isl
>hpux -is
This will bring u to single user mode..
cheers
indrajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 06:11 AM
тАО01-23-2006 06:11 AM
Re: corrupted root user name in passwd file
If you do not have many cron from root, then you are ok. If you do and this is a production server, then be ready for a busy week.
If you have another server and you previuosly set the remsh or shell up, you could remsh, rlogin or rcp (security breach). If not, rebooting to single user is the answer.
If you have many adminstrators that could use root, you may contact them, one might have login shell still up.