Contents
Password reset procedure
This reset procedure can be useful if the root password has been forgotten. If this procedure is not able to reset the password on your unit, then the unit must be returned to Guralp Systems for reflash. Please contact support for details and to arrange an RMA.
Preparation
Equipment required:
- Console cable (either a 12-way mil-spec to DE9 for digital sensors or metal cylindrical units, or a standard serial cable for Peli-case variants).
- Laptop or PC with serial port or USB to RS232 adapter.
- Terminal emulator (e.g. PuTTY under Windows or
minicom
under Linux).
Physical access to the unit will be required.
Booting
- Connect the console cable to the EAM and to the laptop/PC.
- Open the terminal emulator on the laptop/PC and set it to 38400 baud, 8N1.
- Apply power to the EAM.
- Almost immediately, there should be some output. Approximately two screens (2×25 lines) of output will be displayed.
- There will be a series of yes or no questions. Answer no (by pressing the 'n' key) to each question. Very old boot-loaders have some minor differences, but the questions should be as below. If any question is accidentally answered yes, it is safe to simply remove and re-apply power, starting the process again.
Boot-up procedure questions (answer 'n'):
Attempt rsync update ? (y/N) n
Boot main via kexec ? (Y/n) n
Boot main via switch_root ? (y/N) n
Mount successful but no boot options available
Attempt scripted NAND device reinstall ? (y/N) n
At this point, you are now at a shell prompt and can continue the process as below:
/ #
Changing the root password
It is not generally possible to recover the root password, but it can be reset to a known one and then, after logging in normally, changed again to something secure. Start by checking the version of firmware installed:
/ # cat /mnt/etc/build.version
# Overall build version
BUILD_LABEL="platinum-stable"
BUILD_VERSION="10071"
Look at the number in BUILD_VERSION
to determine which procedure to follow.
Builds ≥ 11139
Copy and paste these two commands. They must be exact:
sed -i /mnt/etc/shadow -e '/^root:/s/.*/root:$1$lJerdeXb$pNDmzGchfA5mNrA1u.60m1:14666:0:99999:7:::/'
sync
After power cycling, it will then be possible to use the username root and the password rootme.
Note: Do not connect the unit to the Internet without first changing the root password to something better. Strong passwords are essential for Internet-connected systems.
Builds ≥ 10000 but < 11139
Copy and paste these three commands. They must be exact:
sed -i /mnt/etc/shadow -e '/^root:/s/.*/root:$1$lJerdeXb$pNDmzGchfA5mNrA1u.60m1:14666:0:99999:7:::/'
sed -i /mnt/etc/shadow_http -e '/^root:/s/.*/root:a5f39cb2039fd48d39ad69e0be49717a:15202:0:99999:7:0:0:0/'
sync
After power cycling, it will then be possible to use the username root and the password rootme.
Note: Do not connect the unit to the Internet without first changing the root password to something better. Strong passwords are essential for Internet-connected systems.
Builds < 10000
Copy and paste these two commands. They must be exact:
sed -i /mnt/etc/passwd -e 's,^root:.*$,root:iWuSGrtezXz0E:0:0:root:/root:/bin/bash,'
sync
After power cycling, it will then be possible to use the user-name root and the password rootme for either ssh or logging in via the serial port. However it will not be possible to use this for the web interface; you must log in using one of these two methods and then change the password to something better. Only then will the new password work on the web interface.
Note: Do not connect the unit to the Internet without first changing the root password. Strong passwords are essential for Internet-connected systems.