Вы находитесь на странице: 1из 9

Find the line that looks like this:

password --md5 (a bunch of scrambled numbers, letters, and symbols)


Add a '#' at the very beginning of that line. It should then look like this:
#password --md5 (a bunch of scrambled numbers, letters, and symbols)

Find a line that opens with the word 'lock'.


Add a '#' at the very beginning of that line.

Save file using :wq


Reboot

Select the line that has 'maintenance' in it and press 'Enter'.


Note: In case where performing this step failed to boot into the Maintenance mode,
proceed as follows:
1. Select the line that contains 'maintenance' and press 'e'.
You are allowed to edit the Grub options for this boot option.
2. Press 'b' to boot this option.
A user, like 'admin':
passwd admin
* For expert mode:
/bin/expert_passwd

Solution
To regain access to SecurePlatform machine when the admin and/or expert
passwords are unknown use the following methods:
* Using the Red Hat boot CD. (Two procedures are available)
* Using the live Linux distribution Knoppix.
Note: The following procedures cannot be performed on a UTM-1 appliance.
Method 1:
Using the Red Hat boot CD:
1. Obtain the Red Hat boot CD. (The current Fedora Core boot cd will as also work).
2. At the boot prompt, boot from the Red Hat boot CD with the following command :
linux rescue
3. When prompted, answer the questions posed by the boot process.
4. The system is mounted on the hard drive, and its location is indicated. Write
down the system location (which should be: /mnt/sysimage/ or /mnt/sysimage ).

5. When the command prompt is displayed again, edit the following file (vi should
be available):
/mnt/sysimage/boot/grub/grub.conf
6. Find the line that looks like this:
password --md5 (a bunch of scrambled numbers, letters, and symbols)
Add a '#' at the very beginning of that line. It should then look like this:
#password --md5 (a bunch of scrambled numbers, letters, and symbols)
7. Find a line that opens with the word 'lock'.
Add a '#' at the very beginning of that line.
8. Save and exit the editing session.
9. Reboot the system:
reboot
10. Remove the boot CD from your CDROM drive before it boots from the CD
(again).
11. When the following prompt appears:
GRUB
... (the dots increase in number until it boots the default kernel)
Press the 'space' bar. This should display the GRUB boot loader menu.
12. Select the line that has 'maintenance' in it and press 'Enter'.
Note: In case where performing this step failed to boot into the Maintenance mode,
proceed as follows:
1. Select the line that contains 'maintenance' and press 'e'.
You are allowed to edit the Grub options for this boot option.
2. Press 'b' to boot this option.
13. SPLAT boots until a prompt similar to the following appears:
sh-bash 2.0.x #
14. Change the passwords for:
* A user, like 'admin':
passwd admin

* For expert mode:


/bin/expert_passwd
15. Reboot.
reboot

Alternatively use the following procedure:


1. Obtain the Red Hat boot CD.
Alternatively, use the Fedora Core boot cd.
2. At the boot prompt, run the following command to boot from the Red Hat boot
CD:
linux rescue
3. When prompted, answer the questions posed by the boot process.
4. At the command prompt, type the following command:
chroot /mnt/sysimage /bin/expert_passwd
You can edit the password.
5. Type the new password twice.
6. Reboot.
7. Login as admin.
8. Run the expert command at the command prompt.
You are logged as Expert user and you are able to change the password for the
Expert users.

You can now log in as the user 'admin' and log in to 'expert mode' with each of the
new passwords you just assigned.
Method 2:
Using the live Linux distribution Knoppix:
1. Obtain the live linux distribution Knoppix. You can download the current version
from the knoppix website as follows:

* An English version is available in http://www.knoppix.net.


* A German version is available in http://www.knoppix.org.
2. Boot the machine from the knoppix cd.
3. Click on the terminal screen and bring up a shell window.
4. Run the following commands:
su
mkdir /checkpoint
mount /dev/hda2 /checkpoint
mount /dev/hda1 /checkpoint/boot
chroot /checkpoint
/bin/expert_passwd
At this point you are prompted to enter a password.
Note:
* If the mount /dev/hda2 /checkpoint command fails, use the following command
instead:
/dev/hda3
.
* An easy way to find drive mappings is to use GParted from Knoppix "K menu" >
system > Gparted.
Knoppix will not let you run this unless you have root and a password for root.
To create valid passwords use sudo passwd.
5. Type in the new password twice.
6. To change the regular cpshell admin users's password:
Run the \passwd admin command.
You are prompted to enter a password.
7. Type in the new password twice.
8. Run the exit command.
9. Run the reboot command.

10. Remove the knoppix cd and boot normally.


You can now log in as the user 'admin' and log in to 'expert mode' with each of the
new passwords you just assigned.

Вам также может понравиться