![]() | |||||||||
|
|
|
Resetting the User Password from the command line You can change the password via SSH or Console port from the command line using: # /bin/config –-set=config.system.password=secret # /bin/config –-run=systemsettings However for security the Opengear console server does not store user passwords in plaintext. So when manually setting the passwords using config -s you need to store them hashed. The easiest way to generate a password is to run the following on a perl enabled box: perl -e 'print crypt(" The "salt" value is used so that two people with the same password do not have the same value stored in the password file. It should contain two characters from the set of upper and lower case characters, numbers, and the . and / characters After hashing, the salt should form the first two characters of the hashed password. For example to hash the factory set root password ("default"): perl -e 'print crypt("default", "C7")' returns C7P8YjbFj6hO6 perl -e 'print crypt("default", "C8")' returns C892dFGng.HFw perl -e 'print crypt("default", "./")' returns ./LK1DUnfY2LU perl -e 'print crypt("default", "Cc")' returns Cc792HUQHrQsU Ideally, "salt" should be different on each appliance, even if the password is the same. |
| © Opengear 2008| Privacy Policy |