Command Line User Management
It is possible to manage SRP GUI users from the command line as well as through the GUI. This is useful if the administration user’s password is forgotten.
To use the command line tools, log in to the primary SRP and use the command line SRP program passwd
:
cd /usr/share/n2srp/bin
./passwd
Usage:
./passwd -l
./passwd -e [password]
./passwd -d username [password]
-l List all records in the database
-e Encode the password, printing the hex encoded of the encoded data to stdout (\n included on the end)
-d Update the given username's record, encoding the password
Note:
- If the password is given on the command line, it is not prompted for. If it isn’t provided, it is prompted for.
- If the username doesn’t exist, it is created.