LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-08-2005, 04:31 PM   #1
GameGuru
Member
 
Registered: Jun 2005
Location: Minnesota
Distribution: Ubuntu v5.04
Posts: 85

Rep: Reputation: 15
How do I get my root password in Ubuntu?


I just installed Ubuntu and the only password I remember creating was my login one and it isn't working to enter root. How do I get my root password if you don't know it?
 
Old 09-08-2005, 04:40 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
i believe ubuntu uses sudo.
 
Old 09-08-2005, 04:44 PM   #3
GameGuru
Member
 
Registered: Jun 2005
Location: Minnesota
Distribution: Ubuntu v5.04
Posts: 85

Original Poster
Rep: Reputation: 15
I type "sudo" and it gives me:

usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
{ -e file [...] | -i | -s | <command> }

What do I do?
 
Old 09-08-2005, 04:46 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
ok, type su at the prompt, then give it ur user password
sudo su may work as well, I haven't messed with sudo too much
 
Old 09-08-2005, 04:54 PM   #5
GameGuru
Member
 
Registered: Jun 2005
Location: Minnesota
Distribution: Ubuntu v5.04
Posts: 85

Original Poster
Rep: Reputation: 15
Yeah it is telling me the password is wrong. So back to the original question, how do I find out what my root password is?
 
Old 09-08-2005, 05:00 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Ubuntu specifically doesn't use the root account without much tweaking. If you want to do something that needs root access, type sudo <command> and then input your user password.
 
Old 09-08-2005, 05:11 PM   #7
GameGuru
Member
 
Registered: Jun 2005
Location: Minnesota
Distribution: Ubuntu v5.04
Posts: 85

Original Poster
Rep: Reputation: 15
I want to install divx, do I not need to go into root? How do I install programs in Ubuntu? I learned how in Mandrake but I had to go into root.
 
Old 09-08-2005, 05:15 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
For Ubuntu, to execute a command as root, just prefix it with "sudo". If prompted for a password, give it your user password.

FYI, A search would've turned up threads like:
http://www.linuxquestions.org/questi...+root+password
http://www.linuxquestions.org/questi...+root+password
 
Old 09-08-2005, 11:38 PM   #9
DeadPenguin
Member
 
Registered: Nov 2004
Location: Delaware
Distribution: Slackware
Posts: 351

Rep: Reputation: 30
Here is a good resource.http://ubuntuguide.org/
I am a newb to ubuntu and this answered most of my questions.

I used to hate sudo, but I have a real bad habit of doing too much as root.
Sudo helps only be root when you need to be.

To install from command line you only need to open a terminal and:

sudo apt-get install <name of package>
enter password for sudo.(same as your login.)

Regards,
Blair
 
Old 09-09-2005, 10:46 AM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I love sudo.

Great for giving some users very limited rootish powers.
 
  


Reply



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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
ubuntu, I can no longer become root or have root rights TroelsSmit Linux - Newbie 7 03-24-2007 07:17 PM
root password in ubuntu??? GEJOE DANIEL Ubuntu 7 10-01-2005 09:51 AM
One more; Root-password in Ubuntu 5.04 Waerner Linux - Newbie 17 06-16-2005 06:29 AM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 AM.

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