OVH Community, your new community space.

I forgot my cpanel password. (centos)

19-03-2016, 13:20
Hi. You have to reset it from the Rescue mode. Put your VPS into rescue mode from the Manager, and, when you get the password from email, connect to it via SSH(PuTTY on Windows).

On OVH VPSes, the root partition will be automatically mounted. Run "ls /mnt", and you'll see a folder named or similar to "vdb1"; BTW, I'm almost sure it would be exactly "vdb1", but, if it's not, just change it on the following commands. That folder contains your root filesystem. Run the following commands:

mount --bind /dev /mnt/vdb1/dev
mount -t proc none /mnt/vdb1/mnt
chroot /mnt/vdb1
umount /mnt/vdb1/proc /mnt/vdb1/dev
When you run "passwd", you will be asked twice for your new root password. After you run all the commands, reboot the VPS from the Manager into normal boot, and that would do the job.

19-03-2016, 11:12

I forgot my webhosting cpanel password

how do I restore it, there's nothing in the controlpanel of ovh.