How to get the admin usernames from database and generate password?

Have more questions? Submit a request

Applicable to:

  • SolusVM

Question

 How to get the admin users from database and generate password?

Answer

  1. Connect to Master server via SSH
  2. Access SolusVM database:

    # MYSQL_PWD=`cat /usr/local/solusvm/includes/solusvm.conf | awk -F ":" '{print $3}'` mysql `cat /usr/local/solusvm/includes/solusvm.conf | awk -F ":" '{print $1}'` -u`cat /usr/local/solusvm/includes/solusvm.conf | awk -F ":" '{print $2}'` -h`cat /usr/local/solusvm/includes/solusvm.conf | awk -F ":" '{print $4}'`

  3. List administrator list:

    MYSQL_LIN: select username from administrators;

In order to generate new password for administrator execute the command:

# php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=<ADMINUSERNAME>

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.