| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-12-2006, 08:08 AM
|
#1
|
|
Member
Registered: Oct 2005
Location: Pakistan
Distribution: Roaming about
Posts: 31
Rep:
|
root login problem in ubuntu 5.10
How to login as root in ubuntu 5.10. Really i don't get it.
|
|
|
|
02-12-2006, 09:18 AM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006
Rep:
|
Root login is disable by default in Ubuntu. You shouldn't login as root in any case. You can do everything needed with terminal. Ubuntu used IIRC sudo command which gives root access to that command. Or you can just type "su" in terminal and give root password and then do your stuff.
Another but not recommended thing is to enable root login in KDE. I don't remember at the moment how that was done but you needed to edit some file and add line AllowRootLogin=enable there and then you could login as root into KDE.
|
|
|
|
02-12-2006, 09:20 AM
|
#3
|
|
Member
Registered: Jan 2006
Location: johannesburg south africa
Distribution: SUSE 9.3
Posts: 43
Rep:
|
This is what I hate about UBUNTU and KUBUNTU
You are not supposed to login as root
yOU are supposed to use SUDO
The first usercreated at install time has the power to use sudo
I cannot recall if sudo is made available in the GUI but if yu open a terminal and instead of saying SU etc yu type SUDO and the PASSWORD OF THE FIRST CREATED user
The problem is that there are places that not even SUDO can go
In order to fix those problems yu need to create a root login
To do that you have to change some start up settings so that yu can disable sudo because it is sudo that blocks ROOT login
I thru ubuntu out long ago and did not keep record of how it was achieved to get root login
I got the info of the web from a site where they were discusiing the merits and demerits of SUDO
Go to google and search for SUDO
|
|
|
|
02-12-2006, 09:20 AM
|
#4
|
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,088
|
In Ubuntu (and it's derivatives) the root account is not used. If you need to do anything which requires root access you need to use the sudo command:
Code:
sudo <somecommand>
enter your own password and hit enter
|
|
|
|
02-12-2006, 10:55 AM
|
#5
|
|
Member
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189
Rep:
|
|
|
|
|
02-12-2006, 11:29 AM
|
#6
|
|
Member
Registered: Jan 2004
Location: Connecticut, USA
Distribution: Slackware & Ubuntu
Posts: 53
Rep:
|
If you want to be able to log in as root run the command:
It will prompt you for the password of the account you created during install.
after you enter that enter the new root password 
|
|
|
|
02-12-2006, 02:47 PM
|
#7
|
|
Member
Registered: Jan 2006
Distribution: kubuntu
Posts: 36
Rep:
|
Quote:
|
Originally Posted by crewblunts
If you want to be able to log in as root run the command:
It will prompt you for the password of the account you created during install.
after you enter that enter the new root password 
|
an add on to the advice above
system > admin > login screen > security
make sure that "allow root to log on with GDM" is marked
|
|
|
|
02-12-2006, 06:17 PM
|
#8
|
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776
Rep:
|
Quote:
|
Originally Posted by llewellyn
The problem is that there are places that not even SUDO can go
In order to fix those problems yu need to create a root login
|
Please name one of those, because I've been using Ubuntu for nine months, and I've yet to encounter a single instance in which I've had to enable a root login.
|
|
|
|
02-12-2006, 08:09 PM
|
#9
|
|
Member
Registered: Mar 2004
Posts: 48
Rep:
|
You may not necessarily need to log in as root (at the gdm login screen), but it is nice to be able to fiddle around at the command prompt as root sometimes for system maintenance or whatever without having to type your password after every single command.
Jeff
|
|
|
|
02-12-2006, 09:00 PM
|
#10
|
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776
Rep:
|
Quote:
|
Originally Posted by grapnell
You may not necessarily need to log in as root (at the gdm login screen), but it is nice to be able to fiddle around at the command prompt as root sometimes for system maintenance or whatever without having to type your password after every single command.
Jeff
|
You don't need to type your password after every single command--just once. Then you're good until you close your terminal window, usually.
|
|
|
|
02-13-2006, 07:49 AM
|
#11
|
|
Member
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189
Rep:
|
Quote:
|
Originally Posted by aysiu
You don't need to type your password after every single command--just once. Then you're good until you close your terminal window, usually.
|
Not really..., actually you have to re-type the pw after the given timespan has expired. This timspan is, i think, five minutes by default but can be configured in '/etc/sudoers' with the 'timestamp_timeout' keyword. But nevertheless, a root-login is never necessary, because you can even open a "real" root-shell, with all its privileges, without an explicite root-pw:
Last edited by Flesym; 02-13-2006 at 07:51 AM.
|
|
|
|
02-13-2006, 08:22 AM
|
#12
|
|
Member
Registered: Jan 2006
Distribution: kubuntu
Posts: 36
Rep:
|
or use the root terminal within the app's system tool menu ...
|
|
|
|
02-13-2006, 02:48 PM
|
#13
|
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776
Rep:
|
Quote:
|
Originally Posted by Flesym
Not really..., actually you have to re-type the pw after the given timespan has expired. This timspan is, i think, five minutes by default but can be configured in '/etc/sudoers' with the 'timestamp_timeout' keyword.
|
Thanks for the clarification. Nevertheless, the point remains: you don't have to retype your password after every sudo command.
|
|
|
|
02-20-2006, 04:50 PM
|
#14
|
|
LQ Newbie
Registered: Sep 2005
Location: Lisboa/Beja, Portugal
Distribution: Ubuntu 5.10
Posts: 3
Rep:
|
Hey.
I'm needing some help...
After I changed my root pass (by doing "sudo passwd") in Ubuntu 5.10, I can no longer use sudo command, only su. When I try sudo, it says the password is incorrect, which is not since I can login with su.
What can I do to fix this? I'm kinda used to sudo and it's safier then loggin in as su (in theory...).
Thanks!
|
|
|
|
02-20-2006, 11:14 PM
|
#15
|
|
LQ Newbie
Registered: Dec 2005
Location: Dubai
Distribution: Red hat 9, FC4, Ubuntu, Suse 10
Posts: 20
Rep:
|
please read the following . it cured all my probs, i can now log into a gui desktop as root and do as much damage as i please  . ah the wonders of open source and freedom of choice  .
https://wiki.ubuntu.com/RootSudo
cheers
comatozzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzed 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:19 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
|
|