Lupa password root ? . . . he he he bikin panik emang apalagi klo itu adalah mesin production, berikut ini pengalaman saya waktu lupa password root di mesin dan OS nya juga HP-UX , dibawah ini adalah tampilan yang saya capture ketika booting langsung dari management console . Proses penggantian passwordnya ada pada bagian yang saya bikin tebal hurufnya (perl script di bagian bawah ) . Berikut ini proses lengkapnya mudah-mudahan bermanfaat :
EFI Boot Manager ver 1.10 [14.62] Firmware
Loading device drivers
EFI Boot Manager ver 1.10 [14.62]
/----------------------------------\
/------------------------------------\| System Overview |
| Boot Menu || hp server rx4640 |
| HP-UX Primary Boot: 0/1/1/0.1.0 | Serial #: SGH4606770 |
| Core LAN Gb A | |
| HP-UX Alternate Boot: 0/1/1/1.0.0 | System Firmware: 3.17 [4511] |
| EFI Shell [Built-in] | BMC Version: 3.52 |
| Internal Bootable DVD | MP Version: E.03.15 |
| Core LAN Gb B | Installed Memory: 4096 MB |
| --------------------------------- | |
| Boot Configuration | CPU Logical |
| System Configuration | Module CPUs
| Security Configuration | 0 1 1.6 GHz Active |
| | 1 1 1.6 GHz Active |
\------------------------------------/ |
|
| |
| |
\------------
Use <^|v> to scroll <ENTER> to Select <ESC> or <X/x> for Previous Menu
Loading.: HP-UX Alternate Boot: 0/1/1/1.0.0
Starting: HP-UX Alternate Boot: 0/1/1/1.0.0
(C) Copyright 2004 Hewlett-Packard Development Company, L.P.All rights reserved
HP-UX Boot Loader for IPF -- Revision 2.027
Press Any Key to interrupt Autoboot
\EFI\HPUX\AUTO ==> boot vmunix -lq
Seconds left till autoboot - 4
Type 'help' for help
HPUX> help
-- HPUX bootloader for IPF Help --
-------- supported commands ---
boot [kernel] - boots HPUX kernel
help [-d] - help screen (-d to list debug commands)
mmap - show current EFI memory map
ls [-aRdnlogrtucpFLis] [path...]
ll [-aRdnlogrtucpFLis] [path...] (same as ls -alF)
setauto [-d] [str] - sets AUTO file (-d to delete AUTO file)
showauto - shows AUTO file
ver - prints version numbers
exit - exits bootloader
HPUX> hpux -iS
> System Memory = 4083 MB
loading section 0
........................................................ (complete)
loading section 1
............. (complete)
loading symbol table
loading System Directory (boot.sys) to MFS
....
loading MFSFILES directory (bootfs) to MFS
...................
Launching /stand/vmunix
SIZE: Text:28475K + Data:6495K + BSS:5239K = Total:40209K
Console is on a Serial Device
Booting kernel...
HP-UX will call firmware in physical-addressing mode
Memory Class Setup
-------------------------------------------------------------------------
Class Physmem Lockmem Swapmem
-------------------------------------------------------------------------
System : 4083 MB 4083 MB 4083 MB
Kernel : 4083 MB 4083 MB 4083 MB
User : 3642 MB 3172 MB 3184 MB
-------------------------------------------------------------------------
Loaded ACPI revision 2.0 tables.
NOTICE: cachefs_link(): File system was registered at index 4.
NOTICE: nfs3_link(): File system
Boot device's HP-UX HW path is: 0/1/1/1.0.0
System Console is on the Built-In Serial Interface
iether0: INITIALIZING HP AB352-60001 PCI/PCI-X 1000Base-T Dual-port Core at hard
ware path 0/1/2/0
iether1: INITIALIZING HP AB352-60001 PCI/PCI-X 1000Base-T Dual-port Core at hard
ware path 0/1/2/1
iether2: INITIALIZING HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter at h
ardware path 0/2/1/0
iether3: INITIALIZING HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter at h
ardware path 0/2/1/1
Logical volume 64, 0x3 configured as ROOT
Logical volume 64, 0x2 configured as SWAP
Logical volume 64, 0x2 configured as DUMP
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; start = 0, size = 16777216
Starting the STREAMS daemons-phase 1
Checking root file system.
log replay in progress
replay complete - marking super-block as CLEAN
Root check done.
Create STCP device files
Starting the STREAMS daemons-phase 2
$Revision: vmunix: B11.23_LR FLAVOR
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 4181616 Kbytes, lockable: 2883876 Kbytes, available: 3366532 Kbyte
s
/sbin/ioinitrc:
/dev/vg00/lvol1:log replay in progress
/dev/vg00/lvol1:replay complete - marking super-block as CLEAN
/sbin/krs_sysinit:
* The module 'gvid_info' has been loaded.
* The module 'rng' has been loaded.
* The module 'ipf' has been loaded.
* The module 'dmphdsalua' has been loaded.
* The module 'dmph
* The module 'dmpjbod' has been loaded.
* The module 'dmpapf' has been loaded.
* The module 'dmpapg' has been loaded.
* The module 'dmpap' has been loaded.
* The module 'dmpaaa' has been loaded.
* The module 'dmpaa' has been loaded.
insf: Installing special files for ipmi instance 0 address 250/0
INIT: Overriding default level with level 'S'
INIT: SINGLE USER MODE
INIT: Running /sbin/sh
#
#
#
# perl
sh: perl: not found
# mountall
mount:all was either ignored or not found
# mountall
mountall: /dev/vg00/lvol8 has to be fsck'd
mountall: diagnostics from fsck
vxfs fsck: sanity check: /dev/vg00/lvol8 needs checking
mountall: /dev/vg00/lvol8 was fsck'd and fixed
mountall: /dev/vg00/lvol10 has to be fsck'd
mountall: diagnostics from fsck
vxfs fsck: sanity check: /dev/vg00/lvol10 needs checking
mountall: /dev/vg00/lvol10 was fsck'd and fixed
mountall: /dev/vg00/lvol9 has to be fsck'd
mountall: diagnostics from fsck
vxfs fsck: sanity check: /dev/vg00/lvol9 needs checking
mountall: /dev/vg00/lvol9 was fsck'd and fixed
mountall: /dev/vg00/lvol7 has to be fsck'd
mountall: diagnostics from fsck
vxfs fsck: sanity check: /dev/vg00/lvol7 needs checking
mountall: /dev/vg00/lvol7 was fsck'd and fixed
mountall: cannot fsck /dev/vg02/lvol1
mountall: diagnostics from fsck
vxfs fsck: sanity check failed: cannot open /dev/vg02/lvol1: No such device or a
ddress
mountall: cannot mount /dev/vg02/lvol1
mountall: cannot fsck /dev/vg03/lvol1
mountall: diagnostics from fsck
vxfs fsck: sanity check failed: cannot open /dev/vg03/lvol1: No such device or a
ddress
mountall: cannot mount /dev/vg03/lvol1
mountall: cannot fsck /dev/vg01/lvol1
mountall: diagnostics from fsck
vxfs fsck: sanity check failed: cannot open /dev/vg01/lvol1: No such device or a
ddress
mountall: cannot mount /dev/vg01/lvol1
mountall: /dev/vg00/lvol4 has to be fsck'd
mountall: diagnostics from fsck
vxfs fsck: sanity check: /dev/vg00/lvol4 needs checking
mountall: /dev/vg00/lvol4 was fsck'd and fixed
mountall: /dev/vg00/lvol6 has to be fsck'd
mountall: diagnostics from fsck
vxfs fsck: sanity check: /dev/vg00/lvol6 needs checking
mountall: /dev/vg00/lvol6 was fsck'd and fixed
mountall: /dev/vg00/lvol5 has to be fsck'd
mountall: diagnostics from fsck
vxfs fsck: sanity check: /dev/vg00/lvol5 needs checking
mountall: /dev/vg00/lvol5 was fsck'd and fixed
mountall: cannot fsck /dev/vg03/lvol2
mountall: diagnostics from fsck
vxfs fsck: sanity check failed: cannot open /dev/vg03/lvol2: No such device or a
ddress
mountall: cannot mount /dev/vg03/lvol2
mountall: cannot fsck /dev/vg01/lvol4
mountall: diagnostics from fsck
vxfs fsck: sanity check failed: cannot open /dev/vg01/lvol4: No such device or a
ddress
mountall: cannot mount /dev/vg01/lvol4
mountall: cannot fsck /dev/vg01/lvol2
mountall: diagnostics from fsck
vxfs fsck: sanity check failed: cannot open /dev/vg01/lvol2: No such device or a
ddress
mountall: cannot mount /dev/vg01/lvol2
mountall: cannot fsck /dev/vg01/lvol3
mountall: diagnostics from fsck
vxfs fsck: sanity check failed: cannot open /dev/vg01/lvol3: No such device or a
ddress
mountall: cannot mount /dev/vg01/lvol3
mountall: /dev/vg00/lvol11 has to be fsck'd
mountall: diagnostics from fsck
vxfs fsck: sanity check: /dev/vg00/lvol11 needs checking
mountall: /dev/vg00/lvol11 was fsck'd and fixed
mountall: /dev/vg00/lvol12 has to be fsck'd
mountall: diagnostics from fsck
vxfs fsck: sanity check: /dev/vg00/lvol12 needs checking
mountall: /dev/vg00/lvol12 was fsck'd and fixed
#
#
# which perl
/usr/bin/perl
# perl -e "print crypt
#
# perl -e "print crypt("abcd1234",hello);"
heYm88sS40TRc#
#
#
#
# cd /
# ls
.ICEauthority core lost+found tcb
.TTauthority core.pfs_umount make_sys_image.log tmp
.Xauthority data net u01
.secure data2 null
DATA-PROTECTOR dev opt usr
SD_CDROM etc root var
bin home sbin
comptel lib stand
# cd tvb
sh: tvb: not found.
# cd tcb
# ls
files
# cd files
# ls
auth devassign ttys
# cd auth
# ls
A G M S Y e k q v
B H N T Z f l r w
C I O U a g m s
D J P V b h n system y
E K Q W c i o t z
F L R X d j p u
# cd roo
sh: roo: not found.
# cd r
# ls
root
# vi root
I don't know what kind of terminal you are on - all I have is 'unknown'.
[Using open mode]
"root" 6 lines, 229 characters
root:u_name=root:u_id#0:\
:u_pwd=di65XSzl/YwRY:\
:u_bootauth:u_auditid#0:\
:u_auditflag#1:\
:u_bootauth:u_auditid#0:\
:u_auditflag#1:\
:u_succhg#1176192280:u_pswduser=root:u_suclog#1176194918:u_suctty=consol
e:\
:u_unsuclog#1177043350:u_numunsuclog#17:u_lock@:chkent:
:u_succhg#1176192280:u_pswduser=root:u_suclog#1176194918:u_suctty=consol
e:\
:q!
# export TERM=vt100
# vi root
"root" 6 lines, 229 characters
"root" 6 lines, 229 characters
root:u_name=root:u_id#0:\
:u_pwd=heYm88sS40TRc:\
:u_bootauth:u_auditid#0:\
:u_auditflag#1:\
:u_succhg#1176192280:u_pswduser=root:u_suclog#1176194918:u_suctty=consol
e:\ :u_unsuclog#1177043350:u_numunsuclog#17:u_lock@:chkent:
~
~
~
~
"root" 6 lines, 229 characters
#
#
#
# su -
********************************************************************
* *
* ATTENTION *
* *
* This system is for the use of authorized users only. *
* Individuals using this computer system without authority or in *
* excess of their authority are subject to having all of their *
* activities on this system monitored and recorded by system *
* personnel. Anyone using this system expressly consents to such *
* monitoring and is advised that if such monitoring reveals *
* possible evidence of criminal activity system personnel may *
* provide the evidence of such monitoring to law enforcement *
* officials. *
* *
********************************************************************
You have mail.
Value of TERM has been set to "vt100".
WARNING: YOU ARE SUPERUSER !!
NOTE: Your root shell will bie if inactive for 60 minutes.
unknown:/root>
unknown:/root>
unknown:/root>
unknown:/root>
unknown:/root>passwd
Changing password for root
Old password:
Last successful password change for root: Tue Apr 10 15:04:40 2007
Last unsuccessful password change for root: NEVER
New password:
Password too short - must be at least 8 characters
New password:
Re-enter new password:
Passwd successfully changed
unknown:/root>
No comments:
Post a Comment