LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Had Ubuntu installed and realized that I don't know root password (https://www.linuxquestions.org/questions/linux-newbie-8/had-ubuntu-installed-and-realized-that-i-dont-know-root-password-4175542232/)

romandurbin 05-11-2015 12:12 AM

Had Ubuntu installed and realized that I don't know root password
 
Hi everybody,

I used to be a Linux developer, but I have not used Linux or anything UNIX-like for a long time (more than 10 years). I had it installed by someone else and assumed that the root password is not set. Turned out - it has been. I can logged in as "owner" because I have guessed the password ("password") but no such luck with root. Can anything (other than reinstallation) be done? Is there some default password that root gets at installation that someone at this forum knows? Any other suggestions?

Thank you in advance.

Roman

syg00 05-11-2015 12:21 AM

root is not used in Ubuntu - precede any command that requires authority with "sudo" (no quotes) - you use your password
Code:

sudo fdisk -l
Have a read of RootSudo

Shadow_7 05-11-2015 10:18 AM

As previously said, ubuntu does not enable a root password by default. You could change that behavior, but there's security implications if you do. You can sudo -s from your user and have a root like shell. Which is roughly equivalent. Otherwise prefix commands with sudo for the ones that you want to run with root priviledges. There are plenty of other distros out there with root logins if you desire that type of system.

romandurbin 05-11-2015 11:01 AM

Thanks for sudo
 
Your help is greatly appreciated.


All times are GMT -5. The time now is 09:48 AM.