- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root account disabled - how to enable
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
тАО01-04-2005 03:11 AM
тАО01-04-2005 03:11 AM
My company operates a development shop, and one of our HP-UX 11.11 servers is configured as a trusted system to mirror client configurations. In our testing, the root account has become disabled--when I su or attempt to login, I get a message informing me of that fact.
Complicating this problem is the fact that this server is located across the country from our (my) office, but there is a (non technical) person located there who can follow directions.
How do I resolve this?
Thanks in advance,
Steve Grantham
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2005 03:16 AM
тАО01-04-2005 03:16 AM
SolutionIf it has a web console you should be able to login that way and re-enable root.
If there is a direct attached console, then have the person at the location log in from the console and the reactivate root.
To reactivate once logged in do:
/usr/lbin/modprpw -k root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2005 06:40 AM
тАО01-04-2005 06:40 AM
Re: root account disabled - how to enable
/usr/lbin/modprpw -k root
command, but he isn't able to login. The message is that the account is locked in the commercial security database.
Assuming that we boot into single user and mount /usr read-write, what needs to be changed to allow root's account to be enabled again?
Thanks,
Steve Grantham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2005 05:57 PM
тАО01-04-2005 05:57 PM
Re: root account disabled - how to enable
If you are able to log into single user mode, then it won't ask for a root password. Since this is a trusted system, you can either edit the /tcb/auth/files/r/root file and remove the entry against the lock keyword or use sam and enable the account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 02:50 AM
тАО01-05-2005 02:50 AM
Re: root account disabled - how to enable
The last ditch effort to fix this is to boot the system from the CDROM. You can then escape to a shell, and mount the /usr filesystem to a temporary directory. Once there, you can restore the /usr/tcb directory from a backup tape.
Alternatively, you can mount the various and sundry filesystems to the RAM disk and mess with modprpw to fix the root account.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 07:22 AM
тАО01-05-2005 07:22 AM
Re: root account disabled - how to enable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 02:10 PM
тАО01-05-2005 02:10 PM
Re: root account disabled - how to enable
Very important: you don't want to go into single user mode unless the user is on the real console--you'll lose control of the system.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 05:41 PM
тАО01-05-2005 05:41 PM
Re: root account disabled - how to enable
In extreme case,
use /usr/lbin/tsconvert -r to revert from
trusted system, so you can change password in single user mode.
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 12:51 AM
тАО01-06-2005 12:51 AM
Re: root account disabled - how to enable
Thanks very much for your input so far. The remote user swears he is sitting at "the system console" when he tries to log in. No way I can check that, since he's 3000 miles away, but he's a savvy developer and undoubtedly knows what console I'm referring to.
The 'server' is a j5000 running hp-ux 11.11. My understanding of hp web console is that it has to have been installed and configured prior to losing the root account, which--alas--wasn't the case.
We've scheduled time today to boot into single-user and I'll walk him through either a manual fix on /tcb/auth/files/r/root or by using sam to unlock the account. I'll post the results of this endeavor later today.
Thanks again for your help,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 01:08 AM
тАО01-06-2005 01:08 AM
Re: root account disabled - how to enable
If the default is to log into CDE, then that might be part of the problem.
At the main CDE login panel, from the SESSIONS (I think) button choose "Command Line login" and then try logging in again as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 01:47 AM
тАО01-06-2005 01:47 AM
Re: root account disabled - how to enable
The secure web console DOES NOT have to be configured prior to losing root. Configuring one means that you need a ethernet crossover cable connected to it, and another system running a web browser. The SWC is, for all intents and purposes, a serial console running inside a browser. If you can get this up and running, then you can do everything as though you're sitting in front of the console.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 04:53 AM - last edited on тАО09-05-2023 02:27 AM by Sunitha_Mod
тАО01-06-2005 04:53 AM - last edited on тАО09-05-2023 02:27 AM by Sunitha_Mod
Re: root account disabled - how to enable
Aha, it's not a server, it is an Xwindow workstation...very different animal. The "console" is actually a video card and display, not a "real" terminal at all. The J5000 doesn't have the independent Guardian Service Processor (a separate computer that talks directly to the hardware like a server). In this case, the workstation would indeed lockout root and there is no easy provision for recovering. Here are some choices:
1. As mentioned, hook a real terminal to the serial port on the J5000. Be sure to use a crossover (aka, printer or null-modem) cable and make sure you can send data to the terminal. Then reboot, interrupt the boot process and change the console from the video card to the serial port. That will then be useable to recover from a root lockout.
2. reboot into single user mode. Not a good choice for a true server but it will work to recover root's account. You just mount /usr and then use the modprpw -k command, then reboot.
3. Install sudo so specific users can run specific commands as root. Since sudo doesn't login, it can be used to run modprpw -k and fix root's account without a reboot--probably the simplest solution. Get a copy from HP at the Software Depot. It's part of the Internet Express collection (this is a recent and very welcom addition). Internet Express is found at:
https://support.hpe.com/connect/s/product?language=en_US&kmpmoid=3367813&tab=manualsAndGuides
[Moderator edit: Updated the broken link.]
Bill Hassell, sysadmin