LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-11-2008, 10:04 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
root, is there a root password?


As per subject...

Was playing around with an installation the other day, was kind of bored during my lunch break

But on completing on the installtion, dound that I hadnt supplied a root password during the install.

comments appreciated.

thanks
 
Old 11-11-2008, 10:09 AM   #2
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
on ubuntu(which i'm guessing is your distro), your root password is the password for your user. example: my user name is soppy. my password is piglet(not really. just an example). when i do
Code:
sudo anything
for the password i put piglet. thats the way a default ubuntu install works. hope I help!
 
Old 11-11-2008, 10:44 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
By default, the root account is disabled in Ubuntu**. (Your user password is NOT the root password--it is a sudo password, and give you only the access defined in the sudo configuration)

To enable the root account, simply do this in a terminal:

sudo passwd root

You'll be prompted for your USER password, and then you will be prompted to enter the new ROOT password.


**A complete departure from Unix and Linux standards, and--IMHO--the only real flaw in Ubuntu.
 
Old 11-11-2008, 02:18 PM   #4
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
i guess i just chose the wrong words. thanks for clarifying. i meant to say that it lets you EXECUTE root commands. as usually there is no root user used. it was early in the morning...sorry for any confusion.
 
Old 11-30-2008, 04:31 PM   #5
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Thanks for that...

I have found Ubuntu to be quite different from the other distributions I've been more used to.
 
Old 12-01-2008, 01:52 AM   #6
eccampbell
LQ Newbie
 
Registered: Nov 2008
Posts: 10

Rep: Reputation: 0
(pix)
> A complete departure from Unix and Linux
> standards, and--IMHO--the only real flaw
> in Ubuntu.

Wow, if it's the only flaw that's really saying something, especially since it can be worked around with a single command.

I read somewhere in Ubuntu literature that the reason it was set up with no root account is -- surely there must be other reasons as well -- for security purposes. That is, to hack into an administrator's account would require compromising both the username and the password rather than the password only, as "root" is pretty easy to guess. I dunno, I'm a newbie and no expert. Would there have been any other reasons?
 
Old 12-01-2008, 04:16 AM   #7
jlavigne
LQ Newbie
 
Registered: Apr 2005
Distribution: Fedora Core 3
Posts: 1

Rep: Reputation: 0
That is exactly the reason, and it is not a weakness. It is a little bit of "security through obscurity", but that's not a bad thing.

Rather than enabling the root account, if you should happen to need it for more than a couple of commands at a time, you can simply execute
Code:
sudo -i
at the terminal prompt, enter your user password, and you'll have a root terminal to use.
 
Old 12-01-2008, 06:13 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Thanks for "sudo -i". That might almost make me like Ubuntu again.....

Splitting the semantic hair, I use "flaw" to describe this feature of Ubuntu only because it is a departure from the norm and--to me at least--is an irritant. I had never thought about the security ramifications.

In the future, perhaps I should just say I don't like this "feature"......
 
Old 12-01-2008, 10:07 AM   #9
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
In the terminal

sudo su -

you are root DON'T forget to exit are your done.

Last edited by Duck2006; 12-01-2008 at 10:09 AM.
 
  


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
"su - root" giving incorrect password but normal root login works. ?? arashi256 Linux - Newbie 10 06-03-2010 03:13 AM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
New system won't allow root after installation - using correct password and "root" kn2y Linux - Newbie 6 11-07-2008 07:52 PM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 06:51 AM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:29 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