Connecting to the shelf manager CLI using a serial port and setting up passwords
Using the shelf manager CLI
FortiGate-5140B Chassis Guide
36
01-500-156415-20151104
Changing the shelf manager root account password
Use the following procedure to change the shelf manager root account password.
To add or change the shelf manager root account password
For enhanced security you should use the following steps to add a password for the shelf
manager root account.
1
At the
#
prompt enter the following Linux command to add a password for the root
account:
# passwd
2
Enter and confirm a new password for the root account.
The password should be between 5 and 8 characters long and should include a
combination of upper and lower case letters and numbers.
You can use the
passwd
command to change the root account password at any time.
After setting up your own accounts, you can also use the
passwd
command to
remove the root account. Enter the
passwd
command and when prompted for a
password, press enter to add a blank password.
Resetting a lost shelf manager password
In the shelf manager root account password becomes lost you can reset the password to
its factory default using the
password_reset
U-Boot variable. By setting this variable to
y
and then rebooting the shelf manager, the root password will be removed and you can
add a new one.
1
Connect to the shelf manager CLI using the shelf manger console port.
2
Cycle the Shelf Manager power.
You can do this by partially removing and then re-inserting the shelf manager to cycle
its power or by cycling the power to the chassis.
3
Interrupt the boot when the following line or a similar line appears on the console:
Hit any key to stop autoboot: 0
4
A prompt similar to
shMM #
or
shmm500
appears.
5
Enter the following commands to set the
reset_password
U-Boot variable and save
the change:
shmm500 setenv password_reset y
shmm500 saveenv
6
Enter one of the following commands to reboot the shelf manager:
shmm500 boot
or
shMM # run bootcmd
Output similar to the following appears as the shelf manager reboots:
/etc/rc: hostname demo
/etc/rc: Restoring password file to factory default
7
Enter the following command to add a new password for the root account:
# passwd