Cisco NAC3350-PROF-K9 Hardware Installation Guide - Page 167

Password Recovery, Recovering Root Password for CAM/CAS

Page 167 highlights

Password Recovery 5 C H A P T E R Recovering Root Password for CAM/CAS Use the following procedure to recover the root password for a CAM or CAS machine. The following password recovery instructions assume that you are connected to the CAM/CAS via a keyboard and monitor (i.e. console or KVM console, NOT a serial console). Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9 Power up the machine. When you see the boot loader screen with the "Press any key to enter the menu..." message, press any key. You will be at the GRUB menu with one item in the list "'Cisco Clean Access (2.6.18-128.1.10.el5PAE)." Press "e" to edit. You will see multiple choices as follows: root (hd0,0) kernel /vmlinuz-2.6.18-128.1.10.el5PAE ro root=/dev/cciss/c0d0p2 console=tty0 console=ttyS0,9600n8 crashkernel=128M@16M initrd /initrd-2.6.18-128.1.10.el5PAE.img Scroll to the second entry (line starting with "kernel...") and press "e" to edit the line. Delete the line "console=ttyS0,9600n8" and edit the line so it appears as follows: kernel /vmlinuz-2.6.18-128.1.10.el5PAE ro root=/dev/cciss/c0d0p2 console=tty0 single Press "b" to boot the machine in single user mode. You should be presented with a root shell prompt after boot-up (note that you will not be prompted for password). At the prompt, type "passwd", press Enter and follow the instructions. After the password is changed, enter "reboot" to reboot the appliance. Recovering Root Password for CAM/CAS (Release 3.5.x or Below) To recover the root password for CAM/CAS on release 3.5(x), you can use the Linux procedure to boot to single user mode and change the root password: Step 1 Connect to the CAM/CAS machine via console. OL-20326-01 Cisco NAC Appliance Hardware Installation Guide 5-1

  • 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

CHAPTER
5-1
Cisco NAC Appliance Hardware Installation Guide
OL-20326-01
5
Password Recovery
Recovering Root Password for CAM/CAS
Use the following procedure to recover the root password for a CAM or CAS machine. The following
password recovery instructions assume that you are connected to the CAM/CAS via a keyboard and
monitor (i.e. console or KVM console, NOT a serial console).
Step 1
Power up the machine.
Step 2
When you see the boot loader screen with the “
Press any key to enter the menu…
message, press
any key.
Step 3
You will be at the GRUB menu with one item in the list “'
Cisco Clean Access
(2.6.18-128.1.10.el5PAE)
.” Press “
e
” to edit.
Step 4
You will see multiple choices as follows:
root (hd0,0)
kernel /vmlinuz-2.6.18-128.1.10.el5PAE ro root=/dev/cciss/c0d0p2 console=tty0
console=ttyS0,9600n8 crashkernel=128M@16M
initrd /initrd-2.6.18-128.1.10.el5PAE.img
Step 5
Scroll to the second entry (line starting with “
kernel
…”) and press “
e
” to edit the line.
Step 6
Delete the line “
console=ttyS0,9600n8
” and edit the line so it appears as follows:
kernel /vmlinuz-2.6.18-128.1.10.el5PAE ro root=/dev/cciss/c0d0p2 console=tty0 single
Step 7
Press “
b
” to boot the machine in single user mode. You should be presented with a root shell prompt after
boot-up (note that you will not be prompted for password).
Step 8
At the prompt, type “
passwd
”, press Enter and follow the instructions.
Step 9
After the password is changed, enter “
reboot
” to reboot the appliance.
Recovering Root Password for CAM/CAS (Release 3.5.x or Below)
To recover the root password for CAM/CAS on release 3.5(x), you can use the Linux procedure to boot
to single user mode and change the root password:
Step 1
Connect to the CAM/CAS machine via console.