A real example:
– restart server using the management console
– boot into single user mode
– mount /var and /usr filesystems
– edit /tcb/files/auth/r/root
– set a new root’s password
– restart server
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 |
MP MAIN MENU: CO: Console VFP: Virtual Front Panel CM: Command Menu CL: Console Log SL: Show Event Logs HE: Main Help Menu X: Exit Connection [brn05mp] MP> cm (Use Ctrl-B to return to MP main menu.) [serv05] MP:CM> he li HE li ==== MP Help: Command Menu List ============================================= BP : Reset BMC Passwords MS : Modem Status CA : Configure asynch/serial ports PC : Remote Power Control DATE: Display Date PG : PaGing parameters setup DC : Default Configuration PR : Power Restore Policy Config. DF : Display FRU Information PS : Power management module Status DI : DIsconnect users RB : Reset BMC DNS : Configure DHCP and DNS RS : Reset System through RST signal FW : Upgrade MP firmware SA : Set MP Access HE : Display Help SNMP: Configure SNMP parameters ID : System Information SO : Security Options IT : Modify MP inactivity timeouts SS : System processors Status LC : Configure LAN, SSH and Web ports SYSREV: Display System firmware Revs. LDAP: Configure Directory parameters TC : Reset system via INIT LM : License Management TE : TEll- send a msg. to other users LOC : Locator LED display UC : User Configuration LS : LAN Status WHO : Display connected MP users MR : Modem Reset XD : Diagnostics and reset of MP [serv05] MP:CM> tc TC Execution of this command irrecoverably halts all system processing and I/O activity and restarts the computer system. Type Y to confirm your intention to restart the system: (Y/[N]) y y -> SPU hardware was successfully issued a TOC. [serv05] MP:CM> MP MAIN MENU: CO: Console VFP: Virtual Front Panel CM: Command Menu CL: Console Log SL: Show Event Logs HE: Main Help Menu X: Exit Connection [serv05] MP> co (Use Ctrl-B to return to MP main menu.) - - - - - - - - - - Prior Console Output - - - - - - - - - - Password: Login incorrect Wait for login retry: .. login: root Password: Login incorrect Wait for login retry: .. login: - - - - - - - - - - - - Live Console - - - - - - - - - - - - Firmware Version 46.34 Duplex Console IO Dependent Code (IODC) revision 1 ******* Unexpected TOC. Processor HPA FFFFFFFF'FE780000 ******* GENERAL REGISTERS: r00/03 00000000'00000000 00000000'00C8C038 00000000'00000000 00000000'01A7E000 r04/07 00000000'00000001 00000000'00000000 00000000'01A7E000 00000000'00000000 r08/11 00000000'01A7E9B0 00000000'00000000 000000E0'25574106 000000E0'25574106 r12/15 00000000'00C8C038 00000000'01A81268 00000000'00000064 00000000'00C8C038 r16/19 00000000'00000001 00000000'400190B0 00000000'00000004 00000000'00D6E730 r20/23 00000000'00000000 00000000'00000000 00000000'00000000 00000000'00000000 r24/27 00000000'00000000 00000000'00000000 00000040'FF827000 00000000'00C90038 r28/31 00000000'00000000 00000000'0E5D7240 00000000'0E5D7270 00000000'00000001 CONTROL REGISTERS: sr0/3 00000000'0E3A3000 00000000'06595800 00000000'00F4A400 00000000'00000000 sr4/7 00000000'00000000 00000000'FFFFFFFF 00000000'06C24400 00000000'00000000 pcq = 00000000'00000000.00000000'0017C3E4 00000000'00000000.00000000'0017C3EC isr = 00000000'04240003 ior = 00000000'2308D3C8 iir = 498F0720 rctr = 5FA0282B pid reg cr8/cr9 00000000'000071B3 00000000'000049F0 pid reg cr12/cr13 00000000'00000000 00000000'00000000 ipsw = 000000FF'082CFF1F iva = 00000000'0002A000 sar = 1D ccr = C0 tr0/3 00000000'01A7E000 00000000'040FCA57 00000000'00000000 00000000'77FEF000 tr4/7 00000000'00000000 000000E0'26882F3A 00000000'77F66040 00000000'0E5D7270 eiem = FFFFFFF0'FFFFFFFF eirr = 00000000'00000000 itmr = 000000E0'270CA948 cr1/4 00000000'00000000 00000000'00000000 00000000'00000000 00000000'00000000 cr5/7 00000000'00000000 00000000'00000000 00000000'00000000 MACHINE CHECK PARAMETERS: Check Type = 00000000 CPU STATE = 9E000000 Cache Check = 00000000 TLB Check = 00000000 Bus Check = 00000000 PIM State = ? SIU Status = ???????? Assists = 00000000 Processor = 00000000 Slave Addr = 00000000'00000000 Master Addr = 00000000'00000000 TOC, pcsq.pcoq = 0'0.0'17c3e4 , isr.ior = 0'4240003.0'2308d3c8 @(#) $Revision: vmunix: vw: -proj selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108' Wed Nov 8 19:24:56 PST 2000 $Transfer of control: (display==0xd9 04, flags==0x0) Processor 2 TOC: pcsq.pcoq = 0'0.0'17c624 isr.ior = 0'0.0'0 Firmware Version 46.34 Duplex Console IO Dependent Code (IODC) revision 1 ------------------------------------------------------------------------------ (c) Copyright 1995-2004, Hewlett-Packard Company, All rights reserved ------------------------------------------------------------------------------ Processor Speed State CoProcessor State Cache Size Number State Inst Data --------- -------- --------------------- ----------------- ------------ 0 1000 MHz Active Functional 67108864 67108864 1 1000 MHz Idle Functional 67108864 67108864 Central Bus Speed (in MHz) : 200 Available Memory : 4194304 KB Good Memory Required : Not initialized. Defaults to 32 MB. Primary boot path: 0/1/1/0.1 Alternate boot path: 0/1/1/0.1 Console path: 0/7/1/1.0 Keyboard path: 0/0/4/0.0 Processor is booting from the first available device. To discontinue, press any key within 10 seconds. Boot terminated. ---- Main Menu --------------------------------------------------------------- Command Description ------- ----------- BOot [PRI|ALT|<path>] Boot from specified path PAth [PRI|ALT] [<path>] Display or modify a path SEArch [DIsplay|IPL] [<path>] Search for boot devices COnfiguration menu Displays or sets boot values INformation menu Displays hardware information SERvice menu Displays service commands DIsplay Redisplay the current menu HElp [<menu>|<command>] Display help for menu or command RESET Restart the system ---- Main Menu: Enter command or menu > BO Interact with IPL (Y, N, or Cancel)?> Y Booting... Boot IO Dependent Code (IODC) revision 1 HARD Booted. ISL Revision A.00.43 Apr 12, 2000 ISL> hpux -is Boot : disk(0/1/1/0.1.0.0.0.0.0;0)/stand/vmunix 10149888 + 2912256 + 8890776 start 0x1fed68 alloc_pdc_pages: Relocating PDC from 0xfffffff0f0c00000 to 0x3f900000. gate64: sysvec_vaddr = 0xc0002000 for 2 pages NOTICE: autofs_link(): File system was registered at index 3. NOTICE: cachefs_link(): File system was registered at index 5. NOTICE: nfs3_link(): File system was registered at index 6. CPQswsp : Persistence error [error code : 2]. Cause: Unknown. Failed to retrieve the preferred path persistent data for all the LUNs of the Array 50001FE1500427A0. This may result in loss of preferred path settings of the LUNs under this Array. Ignore this message if all the LUNs of this Array are deleted or if none of the LUNs of this Array have preferred path settings. 0/4/1/0/4/0: Fabric Name Server rejected GPN_FT query. Reason code: unable to perform request; Explanation: FC-4 Type not registered. This may indicate that the HBA port is not part of a zone. Please check zone configuration on your switch. 0/4/1/0/4/0: Fabric Name Server rejected GPN_FT query. Reason code: unable to perform request; Explanation: FC-4 Type not registered. This may indicate that the HBA port is not part of a zone. Please check zone configuration on your switch. igelan0: INITIALIZING HP PCI 1000Base-T Core at hardware path 0/1/2/0 igelan1: INITIALIZING HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter at hardware path 0/2/1/0/6/0 igelan2: INITIALIZING HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter at hardware path 0/3/1/0/6/0 igelan3: INITIALIZING HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter at hardware path 0/4/1/0/6/0 System Console is on the Built-In Serial Interface Entering cifs_init... Initialization finished successfully... slot is 9 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 = 8388608 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: vw: -proj selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108' Wed Nov 8 19:24:56 PST 2000 $ Memory Information: physical page size = 4096 bytes, logical page size = 4096 bytes Physical: 4192256 Kbytes, lockable: 3236476 Kbytes, available: 3728260 Kbytes INIT: /etc/inittab: id field "" not 1-4 chars long -- ignored entry /sbin/ioinitrc: /dev/vg00/lvol1: 115 files, 0 icont, 91044 used, 228081 free (225 frags, 28482 blocks) /sbin/krs_sysinit: INIT: Overriding default level with level 's' INIT: SINGLE USER MODE INIT: WARNING: Bad shell "/usr/local/bin/bash" for root. FIX root ENTRY IN /etc/passwd AND REBOOT !!! INIT: Running /sbin/sh # passwd root Old password: Sorry. # # bdf . sh: bdf: not found # cd /tcb/files/auth/r/ # vi root sh: vi: not found # mount / mou was either ignored or not found in /etc/fstab # # cat /etc/fstab # System /etc/fstab file. Static information about the file systems # See fstab(4) and sam(1M) for further details on configuring devices. /dev/vg00/lvol3 / vxfs delaylog 0 1 /dev/vg00/lvol1 /stand hfs defaults 0 1 /dev/vg00/lvol4 /tmp vxfs delaylog 0 2 /dev/vg00/lvol5 /home vxfs delaylog 0 2 /dev/vg00/lvol6 /opt vxfs delaylog 0 2 /dev/vg00/lvol7 /usr vxfs delaylog 0 2 /dev/vg00/lvol8 /var vxfs delaylog 0 2 /dev/vgdbapp/lvdbapp /u00 vxfs rw,suid,largefiles,delaylog,nodatainlog 0 2 /dev/vgdbapp/lvoradata_01 /u01 vxfs rw,suid,largefiles,delaylog,nodatainlog 0 2 /dev/vg00/lvbackup /backup vxfs rw,suid,largefiles,delaylog,nodatainlog 0 2 # # bdf sh: bdf: not found # df . sh: df: not found # /usr/bin/df . sh: /usr/bin/df: not found # # # cd /usr sh: u^H/usr: not found # # mount /usr vxfs mount: /dev/vg00/lvol7 is corrupted. needs checking # fsck /dev/vg00/lvol7 log replay in progress replay complete - marking super-block as CLEAN # mount /usr # mount /var vxfs mount: /dev/vg00/lvol8 is corrupted. needs checking # fsck /dev/vg00/lvol8 log replay in progress replay complete - marking super-block as CLEAN # mount /var # bdf . Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol3 229376 61857 157093 28% / # cd /tcb/files/auth/r/ # cat root root:u_name=root:u_id#0:\ :u_pwd=yqKQacUTnwxsgS/7/.5ioFQEvcMPgwTe1wo:\ :u_bootauth:u_auditid#0:\ :u_auditflag#1:\ :u_succhg#1329295142:u_unsucchg#1358772944:u_pw_expire_warning#0:u_pswduser=root:\ :u_suclog#1356715974:u_suctty=console:u_unsuclog#1358761259:u_numunsuclog#46:\ :u_lock@:chkent: # # vi root I don't know what kind of terminal you are on - all I have is 'unknown'. [Using open mode] "root" 7 lines, 299 characters root:u_name=root:u_id#0:\ :u_pwd=:\ :x "root" 7 lines, 264 characters # passwd root Changing password for root Last successful password change for root: Wed Feb 15 09:39:02 2012 Last unsuccessful password change for root: Mon Jan 21 13:55:44 2013 Do you want (choose one letter only): pronounceable passwords generated for you (g) a string of characters generated (c) ? a string of letters generated (l) ? to pick your passwords (p) ? Enter choice here: p New password: Password too short - must be at least 6 characters New password: Password must contain at least two alphabetic characters and at least one numeric or special character. New password: Re-enter new password: Passwd successfully changed # shutdown -r now SHUTDOWN PROGRAM 01/21/13 08:21:14 EST |