Reset admin password in Windows Plesk

Filed Under (Plesk) by WebScHoLaR on 21-06-2009

Tagged Under : , , , ,

The Plesk admin password can simply be reset by login to VPS using RDP with following command:

%plesk_bin%\plesksrvclient.exe

Just run the command and it will ask for new admin password. If it also shows the message that Access denied/can’t connect to MySQL then:

  1. Add parameter skip_grant_tables=1 into the [PleskSQLServer] section.
  2. Restart service Plesk SQL Server.

%plesk_bin%\plesksrvclient.exe -get command can be used to retrieve the Plesk admin password from the database to verify that the password has been successfully updated in Plesk system database. If Plesk admin password is not updated somehow then it can be updated manually. To do it, please, follow the steps:

  1. Edit MySQL configuration file my.ini located within %plesk_dir%\mysql\data\.
  2. Add parameter skip_grant_tables=1 into the [PleskSQLServer] section.
  3. Restart service Plesk SQL Server.
  4. Log into Plesk MySQL.

%plesk_dir%\mysql\bin\mysql.exe -P8306 mysql

  1. Execute the following query:

mysql> update mysql.user set password=password(‘NEWPASSWORD’) where user=’admin’;

  1. Remove skip_grant_tables=1 from within the [PleskSQLServer] section within %plesk_dir%\mysql\data\my.ini
  2. Restart service Plesk SQL Server.

Reset Linux Root Password

Filed Under (Articles, Linux) by WebScHoLaR on 19-02-2008

Tagged Under : , ,

  • Reboot the system and wait for the GRUB screen to appear.
  • Highlight the kernel version you’re currently using (usually the newest version) from the GRUB list.
  • Press “e” to be taken to the boot commands edit screen, highlight the line which starts with kernel and press “e” again.
  • Add “single” to the end of the line, so it will look like this:

kernel /vmlinuz-kernel-version ro root=LABEL=/ rhgb quiet single

  • Press “Enter” to save the changes
  • Press “b” to boot in single user mode.

The system will begin loading and, at some point, you will be presented with a root bash prompt.

In the new prompt type “passwd” and choose a new password for root.When done, type reboot to restart the system. After reboot, GRUB will be back to normal so no further modifications are required.

NOTE: If you are asked for the root password before dropping you in a bash prompt in single user mode, you should follow the instructions above and append “single init=/bin/bash” to the kernel line, not just “single“.

Proudly Hosted by eServicesProvider