LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-13-2007, 04:34 PM   #1
MightyKC
Member
 
Registered: Feb 2003
Distribution: Ubuntu 7.10
Posts: 47

Rep: Reputation: 15
Root account?


Please discuss the use of a root account in Ubuntu. For example, following a standard installation, I added a second account, then tried to remove it. But it won't go away since I am not root
 
Old 03-13-2007, 05:25 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Ubuntu doesn't really install a root with passeord. To run commands that require root use sudo before the command. Example.
sudo ifconfig eth0

Brian
 
Old 03-13-2007, 05:27 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
Did you use sudo to remove the second account?
 
Old 03-13-2007, 05:51 PM   #4
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
Under Ubuntu you are supposed to use "sudo" for all superuser access. It is supposed to be set up by default to allow the first created user account to use sudo. I haven't used Ubuntu recently so I am unsure of how it is supposed to work currently, but I remember I got around Ubuntu's various root user problems by creating a password for root so I could log in as root and do maintenance. This is probably not "good practice" but it works for me. You can also swap to a root (console) login with the command sudo su -, which should dump you in a root login shell.
 
Old 03-14-2007, 08:54 PM   #5
pbaumgar
Member
 
Registered: Feb 2003
Distribution: gentoo, ubuntu
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by verdeboy2k
Under Ubuntu you are supposed to use "sudo" for all superuser access. It is supposed to be set up by default to allow the first created user account to use sudo. I haven't used Ubuntu recently so I am unsure of how it is supposed to work currently, but I remember I got around Ubuntu's various root user problems by creating a password for root so I could log in as root and do maintenance. This is probably not "good practice" but it works for me. You can also swap to a root (console) login with the command sudo su -, which should dump you in a root login shell.
or just sudo -i
 
Old 03-14-2007, 09:04 PM   #6
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Everything you need to know is here:
https://help.ubuntu.com/community/RootSudo
http://www.psychocats.net/ubuntu/permissions
http://psychocats.net/ubuntu/security#sudoisnotroot

Why not just go to System > Administration > Users & Groups to remove the user?
 
Old 03-14-2007, 10:02 PM   #7
MightyKC
Member
 
Registered: Feb 2003
Distribution: Ubuntu 7.10
Posts: 47

Original Poster
Rep: Reputation: 15
thank you for the fast help. I tried the System > Administration > Users and Groups right away and the second user came back to life on his own unfortunetly

I will use the sudo from now on. My concern is that I was supposed to set up a root account but couldn't figure out how.
 
Old 03-14-2007, 11:04 PM   #8
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Quote:
Originally Posted by MightyKC
My concern is that I was supposed to set up a root account but couldn't figure out how.
Then you have nothing to worry about. You weren't supposed to set up a root account.
 
Old 03-15-2007, 05:49 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by MightyKC
thank you for the fast help. I tried the System > Administration > Users and Groups right away and the second user came back to life on his own unfortunetly

I will use the sudo from now on. My concern is that I was supposed to set up a root account but couldn't figure out how.
You don't have to setup a root account on Ubuntu, but many people who are used to a classical root account may prefer it over sudo. It just depends on what you are comfortable with. Personally I disable sudo when I setup Ubuntu based systems for myself and use classical root. To run commands as root, I use 'su -c' so there is no need to login as root proper.
 
  


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
Identifying non-administrators w/ root privilege/ Multiple root account in use wjeanpaul Linux - Security 4 05-19-2006 08:55 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
How do I retain the PATH in the root account even when I switch to root using su? thearchitect Linux - Newbie 1 08-13-2005 12:02 AM
Can't get root account ssimontis Ubuntu 6 07-05-2005 07:07 PM
More than one root account?? pcdude Mandriva 2 09-17-2004 03:04 AM

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

All times are GMT -5. The time now is 04:31 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
Open Source Consulting | Domain Registration