A
A
Alexander Kireev2022-03-16 12:09:00
System administration
Alexander Kireev, 2022-03-16 12:09:00

How to change Root's password using Systemrescue (LVM)?

Good afternoon, Dear members of the forum)
"I am developing myself", let's say so)
Background. The case takes place on a dedicated server. Filled with Proxmox. Deployed a virtual machine.

The question is.

How to reset root password on CentOS 7 using SystemRescue? (the same VPS)

It does not allow mounting sda2, because it is LVM, incompatibility of file systems ..

Rummaging around on the Internet, I found a similar option ...
6231a76562b6f417271824.png

The result, let's say positive-negative)
Yes, I changed the password)
But it's not clear which one .. .) i.e. neither the new password nor the old one is suitable ..)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Dmitriev, 2022-03-16
@SignFinder

Use chroot to properly mount OS root when using rescue live cd

S
Sanes, 2022-03-16
@Sanes

Always changed in this way
You mount the partition in read mode. Therefore, nothing is saved.
Another way is to mount in write mode and throw in an SSH key.
mount -o rw,remount

P
pfg21, 2022-03-16
@pfg21

passwd -d root
-d, --delete delete the password for the given account

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question