K
K
Konstantin PROFF2022-01-21 06:51:49
linux
Konstantin PROFF, 2022-01-21 06:51:49

Can't change sudo passwd password on Ubuntu, what other ways are there to change the password?

When changing the password through passwd and rebooting the VM, the password remains the same, that is, it will not change, what other methods are there for changing the sudo password?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2022-01-21
@pfg21

see permissions on /etc/shadow for root there should be an entry.
and how the line starting with root changes in the /etc/shadow file after changing the password.
in the second field, the separator ":", the character set must change.
the advice is not to use the user password at all and run the root console through sudo --login, or even better, use sudo only before those commands that really need elevation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question