LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-02-2011, 09:51 AM   #1
apple273
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
Unhappy ubuntu


hello
i installed ubuntu 11.04 on my pc
but i havnt root user or account
tanks a loot
 
Old 10-02-2011, 09:57 AM   #2
0men
Member
 
Registered: Mar 2011
Location: Gold Coast, Australia
Distribution: saline, centos, freeBSD, slackware
Posts: 182

Rep: Reputation: 22
Hey, Welcome to the forums !

You dont have a root account ?

Thats okay, just jump in a terminal and type
"passwd root" and you should be able to set the root password

Then, when you want to use root to change system settings just use
su -

Hope this helps.
 
Old 10-02-2011, 09:58 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
yes you do, it's impossible to install without both, root isn't even created, it's just there in the config files on the installation media.

When you installed ubuntu you WILL have entered details for a personal user account with a password. If you really can't remember what these details were, try this... on the boot screen hit e to edit the options, select the default entry and then move to the long kernel line. then e to edit that. stick a "1" on the end, exit and then b to boot the system. This will then shortly let you run "useradd myusername" and then "passwd myusername" to set a user. then reboot and log in.

---------- Post added 02-10-11 at 02:58 PM ----------

Quote:
Originally Posted by 0men View Post
Hey, Welcome to the forums !

You dont have a root account ?

Thats okay, just jump in a terminal and type
"passwd root" and you should be able to set the root password

Then, when you want to use root to change system settings just use
su -

Hope this helps.
no no, never do this. this is totally wrong, especially for ubuntu which does not use a model where root has a password. To become root on ubuntu you should run "sudo -i" for a login shell, or "sudo <command name> to run a single command.

Last edited by acid_kewpie; 10-02-2011 at 09:59 AM.
 
Old 10-02-2011, 10:03 AM   #4
jonkiribati
LQ Newbie
 
Registered: Sep 2011
Posts: 23

Rep: Reputation: Disabled
you should have been created a user and set a password while installing Ubuntu. When you boot Ubuntu it should show an authentication screen and then you can choose the user and type the password. If you forgot your password you can boot on recovery mode and then when you have the command line you type passwd theusername and then type a new password.

theusername = the username shown in the authentication screen.

Under Ubuntu you don't need to get root access you can use the sudo command to get root previleges
 
Old 10-02-2011, 10:05 AM   #5
0men
Member
 
Registered: Mar 2011
Location: Gold Coast, Australia
Distribution: saline, centos, freeBSD, slackware
Posts: 182

Rep: Reputation: 22
Ahhh sorry i failed !

Im sorry if i pushed you in the right direction
 
Old 10-02-2011, 10:42 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by 0men View Post
Ahhh sorry i failed !

Im sorry if i pushed you in the right direction
heh I've done it plenty of times myself!
 
Old 10-02-2011, 11:31 AM   #7
0men
Member
 
Registered: Mar 2011
Location: Gold Coast, Australia
Distribution: saline, centos, freeBSD, slackware
Posts: 182

Rep: Reputation: 22
I PM'd you acid. Sorry brother I try to help as much as possible.
 
Old 10-02-2011, 11:40 AM   #8
J.A.X
Member
 
Registered: Jan 2010
Distribution: Fedora 19
Posts: 83

Rep: Reputation: 3
in Ubuntu you do not login as root by the typing
PHP Code:
su 
try this

PHP Code:
sudo su 
when you are prompt for password enter your account password (Notice that you cannot see what you wrote)

anyway press Enter and you should be logged in

Regards
 
Old 10-02-2011, 12:50 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by J.A.X View Post
try this

PHP Code:
sudo su 
No, that's evil too. use "sudo -i". running su within sudo is just a nasty hack.
 
  


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
LXer: Ubuntu live CD will let you upgrade to newer Ubuntu versions Ubuntu 11.04 Development LXer Syndicated Linux News 0 03-01-2011 04:20 PM
LXer: Ubuntu Control Center (ucc) - Simple tool for ubuntu administration LXer Syndicated Linux News 1 05-27-2010 11:51 PM
LXer: Ubuntu Restricted Extras - Lets Ubuntu Play Everything [Ubuntu for Beginners Sc LXer Syndicated Linux News 0 04-20-2010 01:10 AM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 07:46 AM


All times are GMT -5. The time now is 11:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration