I am a frequent visitor here for the past 3 years, but never really posted here. The community is very helpful, saved me a couple of times
The issue:
Recently I had too reinstall my Manjaro because of a dual boot issue. During the installation process, I chose a very simple root password and now I would like to change it.
I found a post here that suggested this:
sudo su
whoami # make sure you are root
passwd
Following this suggestion, I changed the password successfully. The problem was that after I rebooted the system the change has been undone.
How can I change my root password for good?
Thanks
No! You need to provide YOUR password. root can have the same password as yours, if you set that during the install, or a different one. Either way you can assign a new password to root with the command i provided.
In a terminal, you type sudo su, which asks for your old password. Then, after the root prompt, you need to issue the passwd command, which asks for the new root password twice. This should be a different password than yours. Thatās all.
No worries. Was a honest āmistakeā because of the message pacman prints out if run not as administrator. This days most such administrative commands move towards polkit. For isntance if you run pamac update will ask you to introduce your password in a very explicit way. If you run sudo pamac update the message to introduce your password is not so āfancyā.
Glad you sort it out tho.