View Single Post
  #3 (permalink)  
Old 2008-03-09
Tommo Tommo is offline
Junior Member
 
Join Date: 2007-02-23
Posts: 21
Rep Power: 0
Tommo has an average reputation (10+)
Default Re: password recovery on R61

Recovering a Forgotten SPLAT Password
1. If you know the Expert Mode password, but not any of the user passwords,
go to Maintenance Mode. The Expert Mode password is also used to access
Maintenance Mode. Once in Maintenance Mode, issue the cpshell command. Use
the adduser command to create a new user, whose password is known. If you
don't have the option of creating a new user, you're probably stuck
following the steps for when you know neither the Standard Mode nor the
Expert Mode password (see #3 below).
2. If you know a user's Standard Mode password, but you've forgotten the
Expert Mode password, things get a little trickier, but not too bad. I used
a bootable Linux distro (tested with Knoppix & F.I.R.E.).
a) boot to CD
b) mount the hard disk ( mount /dev/hda2 /mnt/hda2 )
c) edit the SecurePlatform passwd file - change the user's default shell
from cpshell to bash (see tip above)
d) boot to SecurePlatform & login with the user you just modified; you get a
bash prompt
e) use the passwd command to change the Expert Mode password
f) edit passwd & change the user's default shell back to cpshell
I tested this using a special user created for the test and also with admin.
No problems either way.
3. If you don't know the Standard Mode password and you don't know the
Expert Mode password, things are even trickier, but you can still get in.
You'll need access to another SecurePlatform installation and a bootable
Linux distro for this one.
a) go to a SecurePlatform box where you know the passwords
b) copy the /etc/passwd and /etc/shadow files to a floppy
c) go to the SecurePlatform machine where you don't know the passwords and
boot to your bootable Linux CD
d) mount the hard disk and the floppy with passwd and shadow files
e) move the existing passwd and shadow files to .old
f) copy the passwd and shadow files from the floppy to your SecurePlatform
machine
g) edit passwd and change the user's default shell from cpshell to bash
h) boot to SecurePlatform and login using the user you just modified; you
get a bash prompt. You may also get an error message if the user doesn't
have a home directory - you should still be able to login
i) use the passwd command to change the Expert Mode password
j) edit /etc/passwd & change the user's default shell back to cpshell
I also changed the permissions on passwd & shadow to match their original
permissions. For passwd, the original permissions were 644. For shadow, the
original permissions were 400.
Reply With Quote