How To
Summary
If the root user has been deleted, it is always recommended that you restore your system from the most recent good mksysb.
If you do not have a good mksysb, you may be able to restore the id.
Objective
Describe the steps to boot from maintenance mode and restore the root user id.
Steps
- Example: some_other_userid:!:0:0
|
su some_other_userid
vi /etc/passwd
CHANGE:
- some_other_userid:!:0:0
+ root:!:0:0
vi /etc/security/passwd
CHANGE:
- some_other_userid:
+root:
|
|
Type the number of your choice and press Enter.
1) Access this Volume Group and start a shell
**2) Access this Volume Group and start a shell before mounting filesystems |
|
vi /etc/passwd:
Add the following line:
root:!:0:0::/:/usr/bin/ksh
|
|
vi /etc/group
Add the following line:
system:!:0:root |
|
vi /etc/security/group
Add the following lines:
system:
admin = true |
|
passwd root
** Set a temporary password, since you will need to change this at first login.
|
Additional Information
| SUPPORT | ||
|---|---|---|
|
If additional assistance is required after completing all of the instructions provided in this document, please follow the step-by-step instructions below to contact IBM to open a case for software under warranty or with an active and valid support contract. The technical support specialist assigned to your case will confirm that you have completed these steps. 1. Document and/or take screen shots of all symptoms, errors, and/or messages that might have occurred. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, please visit the IBM Support Community: 4. Provide a good description of your issue, and reference this Technote, and any issues you had with the instructions. 5. Collect the system snap and upload all of the details and data for your case.
|
Related Information
Was this topic helpful?
Document Information
Modified date:
06 May 2019
UID
ibm10883524