Are you loss your linux server root password and you can not log on to your server, and your server in datacenter ovh or hetzner ?
Follow thoses steps :
I will tell you step by step how to restore your root password ,
1- log into your datacenter control panel and boot your server in rescue mode
2- after your server booted see if your HDD is mounted or not (you can use df command)
3- Mounting disk(s)
Usually, /dev/xda1 is your root partition (/) and /dev/xda2 corresponds to /home.
a- Devices are such as:
- /dev/sd for SCSI, SATA, Raid Hard
- /dev/hd for IDE disks
- /dev/md for RAID Soft
- /dev/rd/c0d0p for raid Mylex
- /dev/ad4s1 for Freebsd systems
b- Mounting disk with an ESXi datastore
To mount an ESXi datastore, you have to use the vmfs-fuse tool.
vmfs-fuse /dev/sdX /mnt
3- if your HDD not mounted create new Directory and mount your / Partition
mount /dev/sda2 /root/myhdd
4- change you root directory
5- Now You change your root Password :
6- enter your new password and reboot server in normal mode
Exiting from the Rescue Mode
After the modifications, we must go back to the manager in order to restore in Boot our usual Boot method.