- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to change root password even though id ...
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
05-02-2003 04:36 PM
05-02-2003 04:36 PM
passwd root it asks for the old password which I don't know. I believe the account is disabled because the /etc/passwd entry has an '*' in it. Is there any way around this?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2003 05:36 PM
05-02-2003 05:36 PM
Re: Unable to change root password even though id says root
# who -r
2. passwd root on single user mode, system should not ask for the old password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2003 06:04 PM
05-02-2003 06:04 PM
SolutionTake a look at the rest of the user entries in /etc/passwd. If they all have * in the passwd field, then you are likely using a Trusted System and the passwords have been moved to the /tcb directory. If root is the only one with * in it, you can manually remove it. But first, verify you are in single user mode with the mount command: it should look like this:
# mount
/ on /dev/vg00/lvol3 log on Wed Mar 12 13:52:55 2003
/stand on /dev/vg00/lvol1 defaults on Wed Mar 12 13:52:58 2003
NOTHING ELSE. If /usr or other mountpoints are there, you haven't booted into single user mode. init s will *NOT* get you to single user mode. The man page clarifies this by stating you should not use init s to go from a higher level to single user mode,
To edit /etc/passwd, you need /usr, /tmp and /vasr mounted, so do this in single user mode:
mount /usr
mount /var
mount /tmp
Now run vipw (note: get used to using vipw rather than vi--it's safer to use in a multi-sysadmin environment) and remove the * character. But only do this *IF* there is no /tcb directory.
If there is a /tcb directory, you have a Trusted System and you'll have to bring up the system in single user mode. Now if another sysadmin has setup the option that entering single user mode requires the root password, you'll not get to a shell prompt.
If you can get to a shell prompt (and most important, you are logged on to the system console (not telnet, not a support modem, not a LAN connection, etc), the system should not ask for the old password. If it doesm you'll have to mount /var, /tmp and /usr, then run vi on the file:
/tcb/files/auth/r/root
and remove the line that looks like:
:u_pwd=t0.krNwxexKNYhw:
The expected behavior is to ask for a new password since one does not exist.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 09:54 AM
05-05-2003 09:54 AM
Re: Unable to change root password even though id says root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 11:53 AM
05-05-2003 11:53 AM
Re: Unable to change root password even though id says root
If you have not mounted /usr and id works you're not in single user mode.
Time to try again.
Also great advice to run pwck after ever manually editing /etc/passwd or /tcb files on trusted systems.
grpck is good if you've edited the /etc/group file.
Good luck.
http://www.isnamerica.com
Call me anything you want, just don't forget to call me to dinner.
Steven E. Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com