I'm having trouble updating my Plesk account. This is happening with two VPSs on two different OVH accounts. I tried entering rescue mode to change root access, and when I returned to normal mode, the password wasn't saved. What am I doing wrong? Thanks.
root@myserveri:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 2.5G 0 disk
`-sda1 8:1 0 2.5G 0 part /
sdb 8:16 0 20G 0 disk
`-sdb1 8:17 0 20G 0 part
root@myserver:~# mount /dev/sdb1 /mnt
root@myserver:~# chroot /mnt
root@myserver:/# sudo passwd
New password:
Retype new password:
passwd: password updated successfully
root@myserver:/# exit
Estoy teniendo problemas al actualizar mi Plesk. Me pasa con dos cuentas distintas en OVH. Intenté entrar en modo rescate para cambiar el acceso a root, y cuando vuelvo al modo normal, la contraseña no se ha guardado. ¿Qué hago mal? Gracias
Hello,
Compare whether /mnt/etc/shadow has been updated after your command. You may also avoid sudo, as you are already root. You may want to name explicitly the user in 'passwd root'.
You may also consider removing the 'x' for root in the /mnt/etc/passwd file so that root could log on without any password, in order to allow you to set one on the next reboot. (I did not try, though)