PDA

View Full Version : So... what IS the root password in Ubuntu?



hoppipolla
October 20th, 2009, 06:22 AM
Is there just... not... one? Is it random? I mean I guess it's still secure because you need to know the user password to change it anyway, but I was just wondering if it is set to ANYTHING at all by default?

People always ask what the default is but of course it can't be just one password or it would be a hacker's dream lol xD

Hoppi o.O

BslBryan
October 20th, 2009, 06:25 AM
It's whatever the first user's first password was.

hoppipolla
October 20th, 2009, 06:29 AM
It's whatever the first user's first password was.

oh so THAT'S why when it asks me for the admin password I just enter my own! I thought it was some clever roundabout thing that Ubuntu had come up with, but the lazy buggers had just made that my admin password as well! lol

That's clever though - a little weird! - but clever!

BslBryan
October 20th, 2009, 06:35 AM
Though sudo is a different story. If you add a user to your sudoers file, they will use their own password.

hoppipolla
October 20th, 2009, 06:52 AM
Though sudo is a different story. If you add a user to your sudoers file, they will use their own password.

ah ok :)

lisati
October 20th, 2009, 06:55 AM
Have a look here: https://help.ubuntu.com/community/RootSudo

<aside>Some other "root privileges" that come to mind are beyond the scope of these forums</aside>

NoaHall
October 20th, 2009, 07:44 AM
The root account is disabled by default in Ubuntu. You use sudo in place, to give you short-time status of root. The root default password is root.

cariboo
October 20th, 2009, 08:02 AM
If you look at /etc/shadow you will see that the password for root is !. :)

anaconda
October 20th, 2009, 08:04 AM
The root account is disabled, and that means that root has no password. so no random string, and it is NOT the first users first password.

But if you need to activate the root account, all you need to do is to give root a password.

Exodist
October 20th, 2009, 08:05 AM
There never is a default password. It is always set by the admin (like yourself) at startup.

the yawner
October 20th, 2009, 09:30 AM
It's 123456. Silly.

NCLI
October 20th, 2009, 10:04 AM
As you can see in the /etc/shadow file, THERE IS NO ROOT PASSWORD. All users in the sudoers group can use their own password to gain root privileges for a limited time, and you can give root a password in several ways I won't post here.

adeypoop
October 20th, 2009, 10:06 AM
It's 123456. Silly.

haha 123456! Actually you are mistaken that is the windows Administrator password. :P

I used to enable root with a password so that I could use root account when doing admin stuff, instead of having to type sudo all the time. Recently I realised 'sudo bash' can give me a root terminal so I don't bother with 'su' anymore.

JillSwift
October 20th, 2009, 10:13 AM
haha 123456! Actually you are mistaken that is the windows Administrator password. :P

I used to enable root with a password so that I could use root account when doing admin stuff, instead of having to type sudo all the time. Recently I realised 'sudo bash' can give me a root terminal so I don't bother with 'su' anymore.
sudo -i is easier, no?

3rdalbum
October 20th, 2009, 11:11 AM
sudo -i is easier, no?

It's a heck of a lot easier than what the Mac uses to open a root terminal, which is:


osascript -e 'tell app "ARDAgent" to do shell script "whoami"';

coolbrook
October 20th, 2009, 11:42 AM
http://www.youtube.com/watch?v=dzm8kTIj_0M

stuart.reinke
October 20th, 2009, 12:14 PM
It's 123456. Silly.

That's the same as my luggage combination. :)

sisco311
October 20th, 2009, 12:36 PM
If you look at /etc/shadow you will see that the password for root is !. :)

+1

The /etc/shadow file stores the passwords in encrypted format.

The root account password is locked by default. ! matches no possible encrypted value.


community/RootSudo
http://www.cyberciti.biz/faq/understanding-etcshadow-file/

man passwd | less --pattern\="-l, --lock"

RiceMonster
October 20th, 2009, 02:28 PM
It's 123456. Silly.

It's letmein in Jaunty and Karmic.

mcduck
October 20th, 2009, 02:36 PM
It's a heck of a lot easier than what the Mac uses to open a root terminal, which is:


osascript -e 'tell app "ARDAgent" to do shell script "whoami"';

Never even seen such a command. I always use "sudo -i" on OSX as well.. ;)

MaxIBoy
October 20th, 2009, 04:03 PM
In Ubuntu, the root password is a totally randomized at install time. However, with sudo you can also use the password of the first user you created, giving you equal privileges to root. You can then set a root password if you like, and "su" now works as well as sudo.

FuturePilot
October 20th, 2009, 04:07 PM
In Ubuntu, the root password is a totally randomized at install time. However, with sudo you can also use the password of the first user you created, giving you equal privileges to root. You can then set a root password if you like, and "su" now works as well as sudo.

No, it is not randomized. There is no root password at all.

Daveski
October 20th, 2009, 11:54 PM
Crikey - does it matter? Your account (with sudo) has the ability to reset the root password at any time anyway.

calrogman
October 21st, 2009, 12:07 AM
haha 123456! Actually you are mistaken that is the windows Administrator password.

Actually, unless the user changes the password after installation (very rare), the Windows Administrator account can be accessed by anyone, without a password, although you have to use Ctrl Alt Del @ the login screen.

Bachstelze
October 21st, 2009, 12:16 AM
No, it is not randomized. There is no root password at all.

There is one. It is just impossible to get it right. ;)

sisco311
October 21st, 2009, 12:24 AM
There is one. It is just impossible to get it right. ;)

optimist.

aysiu
October 21st, 2009, 12:25 AM
There's too much misinformation here. This is not a matter of opinion or debate.

Here are the straight facts, and then I'm closing the thread: There is no root password in Ubuntu. Root logins are disabled by default You don't need to set a root password, because sudo and gksudo allow you to execute commands at a root level from your user account (after password authentication) sudo -i gives you a persistent root prompt (without a root password, only the sudo password), and this works in both Ubuntu and Mac OS X