I recently posted here regarding a problem I was having with installing VLC media player on Ubuntu 18.04 LTS. I just read a reply to that message which said if I did not have the root password, I cannot install anything on Ubuntu. I understand that, but I am wondering if it is possible to recover or reset the root password and, if so, how do I do it?
Thank you.
Jeff (jeff5613)
sudo
rights; which is setup at install time. Theroot
user has an invalid password at install time, thus disabling the account (intentionally as it's safer; and not needed). – guiverc Oct 28 '21 at 00:05sudo passwd
(ie.sudo
to elevate your privileges, so the password you're changing is the 'root' account), but you open up your box for more potential hacks by doing so; and gain in effect nothing. Just as a learning example... enterwhoami
at terminal when you're you; then trysudo whoami
.... that's how Ubuntu by default intends users to access root... with thesudo
(there is a lot more detail about environments involved... so this is an oversimplification, but it'll show I hope that a root password isn't required) – guiverc Oct 28 '21 at 00:07