LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-21-2011, 08:10 PM   #1
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 7 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Root User in Ubuntu


Hi,

I am now getting back into Linux after years in the US Navy and I can't remember a great deal. However, I used to run RH9 years ago and I could log in as root. Now, with Ubuntu, I cannot nor do I see where I can manipulate the password for it so I may log in as Root. Can someone help? Thanks.
 
Old 05-21-2011, 08:22 PM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,244

Rep: Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199
The root account is locked (no password) in Ubuntu and you are supposed to use "sudo" instead.

See here for more info:

https://help.ubuntu.com/community/RootSudo
http://xkcd.com/149/
 
Old 05-21-2011, 08:24 PM   #3
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 7 prior Red Hat User
Posts: 473

Original Poster
Rep: Reputation: 30
okay, thanks. So, how would I log in as that user? Thanks.
 
Old 05-21-2011, 08:25 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
In Ubuntu the root-password is randomly generated to prevent a login as root. You can become superuser with sudo. If you want to set a new password for root, so that you can login as root, do
Code:
sudo passwd root
Keep in mind that it is not recommended to login to the GUI as root.
 
Old 05-21-2011, 08:26 PM   #5
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 7 prior Red Hat User
Posts: 473

Original Poster
Rep: Reputation: 30
Thanks, I will try that.
 
Old 05-21-2011, 08:28 PM   #6
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,244

Rep: Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199
Quote:
Originally Posted by scottpioso View Post
okay, thanks. So, how would I log in as that user? Thanks.
sudo is not a user. sudo allows your current user to execute a command with root priviledges. The password is your user password. This is explained in the link I provided above.
 
Old 05-28-2011, 05:50 PM   #7
The Russian
Member
 
Registered: May 2011
Location: localhost
Distribution: Debian, Ubuntu, Fedora, CentOS, and anything other than KDE.
Posts: 38

Rep: Reputation: Disabled
And if you'd like to run commands AS root, use this: sudo bash
 
Old 05-28-2011, 05:57 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Quote:
Originally Posted by The Russian View Post
And if you'd like to run commands AS root, use this: sudo bash
If you use sudo to start a program you are running it as root.
 
Old 05-28-2011, 05:59 PM   #9
The Russian
Member
 
Registered: May 2011
Location: localhost
Distribution: Debian, Ubuntu, Fedora, CentOS, and anything other than KDE.
Posts: 38

Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
If you use sudo to start a program you are running it as root.
Indeed. I like using it better so I don't have to use sudo, I'd rather have the entire shell be root, then have to use sudo for one thing at a time.
 
Old 06-01-2011, 11:24 AM   #10
Stephen R. Besch
LQ Newbie
 
Registered: Apr 2008
Distribution: Linux Mint
Posts: 20

Rep: Reputation: 4
Quote:
Originally Posted by The Russian View Post
Indeed. I like using it better so I don't have to use sudo, I'd rather have the entire shell be root, then have to use sudo for one thing at a time.
Then simply type su at the command prompt.
 
  


Reply


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
how to be a root user in ubuntu? aparna.v Linux - Newbie 7 04-02-2010 10:27 AM
did not find any option for root password for root user in ubuntu 9.10 linux.ab Linux - Newbie 1 03-02-2010 03:58 AM
how to login graphically as root user in ubuntu baran_6566 Ubuntu 1 10-20-2007 06:45 AM
qparted asking for root user in ubuntu kateshine Ubuntu 1 09-03-2006 11:12 PM
Make a root user for Ubuntu dbcoder Linux - Software 17 02-14-2005 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:28 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration