01-07-2003
Step by Step
You need to use:
a) A console, or
connect a PC/notebook in the serial port using the apropiate serial cable:
1) If the Serial console use an RJ45 as Serial conector
use the cable provided with the machine, or
if you use cisco switches use the terminal DB9
(for the PC an the cisco cable to serial 1)
2) If the Serial console use an DB25 connector as
Serial conector use the cable provided with the
machine, or an HP Serial cable DB9 to DB25
Because the most common case is to use a serial connection
the rest of the post is
b) Open an Hyperterminal/SecureCRT or whatever and
open a connection via COM1 (9600-8-N-1-None) using vt100
emulation.
c) Send a shift-break to halt the system
d) at the ok prompt
OK boot cdrom -s
e) After boot
TERM=vt100
export TERM
mkdir /tmp/d0
mount /dev/dsk/c0t0d0s0 /tmp/d0
cd /tmp/d0/etc
f) Leave blank the second field of the /etc/passwd
vi /tmp/d0/etc/passwd
( delete the x an save :wq! )
g) reboot
h) when prompt for root passwd press enter
i) change root passwd
passwd.
Note: If possible that you need to run an fsck
example: fsck -F <FSTYPE> -y /dev/rdsk/c0t0d0s0
FSTYPE: usually ufs
Note 2: If you use Solstice Disksuite in order to mirror
boot disk, you need to copy the modified /etc/passwd
to the other partition. I.E.:
f.1) mkdir /tmp/d1
mount /dev/dsk/c0t1d0s0 /tmp/d1
cp -p /tmp/d0/etc/passwd /tmp/d1/etc/passwd
Last edited by hugo_perez; 01-14-2003 at 01:37 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello ...
I lost my password root !
maybe someone can to help me to log in HP_UX,
i started the server in " Singel - User" and i changed my
password to new password and it`s not working ..
what i must to do ??? (4 Replies)
Discussion started by: yanly
4 Replies
2. UNIX for Advanced & Expert Users
I have recently become the sys adm guy for our unix systems here for my shop. I have a pretty good understanding of the system, but there is just some stuff that I don't know. Right now one of those things is to recover the password for a unix system.
I know that there is a way that you can use... (2 Replies)
Discussion started by: GlockCW
2 Replies
3. Answers to Frequently Asked Questions
We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies
4. Linux
wish to know how to access root password it root password is forgotten in linux (1 Reply)
Discussion started by: wojtyla
1 Replies
5. UNIX for Dummies Questions & Answers
I'm attempting to blank out the root user password on a machine that we have forgotten the password for. I have been using the advice posted on this site to boot from CDROM in single user mode, then mounting the root slice and editing the /etc/shadow file. Each time I save the shadow file and... (1 Reply)
Discussion started by: gonzotonka
1 Replies
6. AIX
Hi how do you reset the root password in AIX.
I booted to single user mode and it asked for login and password.
I have AIX 4.3.
Thanks (4 Replies)
Discussion started by: Welfaric
4 Replies
7. UNIX for Advanced & Expert Users
This is a common question im sure... I bought a RS/6000 Model 240. Aix 4.3.3 loaded. No root password was supplied to me, but I do have the install media (4 disks). I want to drop into maint mode. So I place the cd into the drive, restart the box ( by pressing the power button, since i do not have... (3 Replies)
Discussion started by: JoeJohnSmith
3 Replies
8. UNIX for Dummies Questions & Answers
Ive lost the root password , i dont have the cds , what can i do? (3 Replies)
Discussion started by: sopapa
3 Replies
9. SCO
I dont have the cds, what can i do? (2 Replies)
Discussion started by: sopapa
2 Replies
10. Solaris
Hi All
Hope it's okay to post on this sub-forum, couldn't find a better place
I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies
LEARN ABOUT CENTOS
mokutil
MOKUTIL(1) General Commands Manual MOKUTIL(1)
NAME
mokutil - utility to manipulate machine owner keys
SYNOPSIS
mokutil [--list-enrolled]
mokutil [--list-new]
mokutil [--list-delete]
mokutil [--import keylist| -i keylist]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P] |
[--simple-hash | -s])
mokutil [--delete keylist | -d keylist]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P] |
[--simple-hash | -s])
mokutil [--revoke-import]
mokutil [--revoke-delete]
mokutil [--export | -x]
mokutil [--password | -p]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P] |
[--simple-hash | -s])
mokutil [--clear-password | -c]
([--simple-hash | -s])
mokutil [--disable-validation]
mokutil [--enable-validation]
mokutil [--sb-state]
mokutil [--test-key | -t] ...
mokutil [--reset]
([--hash-file hashfile | -f hashfile] | [--root-pw | -P] |
[--simple-hash | -s])
mokutil [--generate-hash=password | -gpassword]
DESCRIPTION
mokutil is a tool to import or delete the machines owner keys (MOK) stored in the database of shim.
OPTIONS
--list-enrolled
List the keys the already stored in the database
--list-new
List the keys to be enrolled
--list-delete
List the keys to be deleted
--import
Collect the followed files and form a request to shim. The files must be in DER format.
--revoke-import
Revoke the current import request (MokNew)
--revoke-delete
Revoke the current delete request (MokDel)
--export
Export the keys stored in MokListRT
--password
Setup the password for MokManager (MokPW)
--clear-password
Clear the password for MokManager (MokPW)
--disable-validation
Disable the validation process in shim
--enrolled-validation
Enable the validation process in shim
--sb-state
Show SecureBoot State
--test-key
Test if the key is enrolled or not
--reset
Reset MOK list
--generate-hash
Generate the password hash
--hash-file
Use the password hash from a specific file
--root-pw
Use the root password hash from /etc/shadow
--simple-hash
Use the old SHA256 password hash method to hash the password
Note: --root-pw invalidates --simple-hash
Thu Jul 25 2013 MOKUTIL(1)