Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ubuntu root password

Status
Not open for further replies.

wabob

IS-IT--Management
Sep 21, 2004
128
US
I just loaded Ubuntu linux. Unlike the other distros I've used, I don't recall being asked for the root password while it was loading.

So now Ubuntu is loaded and I cannot get into root. It asks for a password and none of my guesses have worked.

Is there a default root password? Any way I can find it out or reset it?
 
Never mind.

After a little research, I learned the root account is disabled by default in Ubuntu.

You need to enable the root account by using the sudo commands as described in this link:


Experience is a tough teacher.
The test comes first, the lesson comes later...
 
I don't recall which distro I was using, but during the setup, there was also no prompt for the root password. I found out from somewhere that the root password is set to the same password that you set your first user up with.


-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=
NEVER send the boss to do a techs job
 
You don't use roots passwort, to do a 'sudo', but your own.

Sudo is managed by /etc/sudoers, and by default the first user is added to the group 'admin', and to run a programm with sudo you have to retype YOUR passwort - you cannot login as root, and root does not get the same passwort.

Look at /etc/passwd and /etc/shadow to prove it.

If you need to do more than one command as root, just get root with the sudo command:
Code:
sudo su

There are switches available to read the root-environment at startup:
Code:
sudo su -
or do other things (man su).


seeking a job as java-programmer in Berlin:
 
You don't use roots passwort, to do a 'sudo', but your own.

SuSE now installs with rootpw=on which requires root's password when executing sudo commands. I cannot understand this, as it kind of defeats the purpose of sudo AFAIAK.

I don't know how many other distros are doing this, but it is one of the first things that I change.

I hate defaults that just don't make any sense whatsoever.


pansophic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top