Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-11-2015, 01:12 AM   #1
LQ Newbie
Registered: May 2015
Posts: 4

Rep: Reputation: Disabled
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.

Old 05-11-2015, 01:21 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,941

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
root is not used in Ubuntu - precede any command that requires authority with "sudo" (no quotes) - you use your password
sudo fdisk -l
Have a read of RootSudo
1 members found this post helpful.
Old 05-11-2015, 11:18 AM   #3
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 3,304
Blog Entries: 1

Rep: Reputation: 685Reputation: 685Reputation: 685Reputation: 685Reputation: 685Reputation: 685
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.
1 members found this post helpful.
Old 05-11-2015, 12:01 PM   #4
LQ Newbie
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for sudo

Your help is greatly appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I don't have a root password, please advise... TheCorporation Linux - Newbie 4 03-22-2013 08:09 AM
the root password is correct but it don't work!!!!!!! nadia_kh Linux - Newbie 9 07-19-2012 09:21 AM
Vmware ubuntu 10.10 installed ................root password.. rahulfreez Linux - Desktop 1 01-24-2011 08:04 AM
[SOLVED] Installed newest Ubuntu setting a weak password. Changed password now buggered? lugoteehalt Ubuntu 1 05-29-2010 10:51 PM
i don't know my grub/root password Joe120 Linux - Newbie 7 01-25-2006 06:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration