Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-13-2007, 04:34 PM
|
#1
|
Member
Registered: Feb 2003
Distribution: Ubuntu 7.10
Posts: 47
Rep:
|
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
|
|
|
03-13-2007, 05:25 PM
|
#2
|
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:
|
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
|
|
|
03-13-2007, 05:27 PM
|
#3
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
Did you use sudo to remove the second account?
|
|
|
03-13-2007, 05:51 PM
|
#4
|
Member
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350
Rep:
|
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.
|
|
|
03-14-2007, 08:54 PM
|
#5
|
Member
Registered: Feb 2003
Distribution: gentoo, ubuntu
Posts: 43
Rep:
|
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
|
|
|
03-14-2007, 09:04 PM
|
#6
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775
Rep:
|
|
|
|
03-14-2007, 10:02 PM
|
#7
|
Member
Registered: Feb 2003
Distribution: Ubuntu 7.10
Posts: 47
Original Poster
Rep:
|
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.
|
|
|
03-14-2007, 11:04 PM
|
#8
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775
Rep:
|
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.
|
|
|
03-15-2007, 05:49 AM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|