LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   root login problem in ubuntu 5.10 (https://www.linuxquestions.org/questions/ubuntu-63/root-login-problem-in-ubuntu-5-10-a-414509/)

Pr_009 02-12-2006 08:08 AM

root login problem in ubuntu 5.10
 
How to login as root in ubuntu 5.10. Really i don't get it.

Zmyrgel 02-12-2006 09:18 AM

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.

llewellyn 02-12-2006 09:20 AM

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

XavierP 02-12-2006 09:20 AM

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


Flesym 02-12-2006 10:55 AM

https://wiki.ubuntu.com/RootSudo

crewblunts 02-12-2006 11:29 AM

If you want to be able to log in as root run the command:
Code:

sudo passwd root
It will prompt you for the password of the account you created during install.

after you enter that enter the new root password :)

Gezzer 02-12-2006 02:47 PM

Quote:

Originally Posted by crewblunts
If you want to be able to log in as root run the command:
Code:

sudo passwd root
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

aysiu 02-12-2006 06:17 PM

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.

grapnell 02-12-2006 08:09 PM

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

aysiu 02-12-2006 09:00 PM

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.

Flesym 02-13-2006 07:49 AM

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:
Code:

sudo su

Gezzer 02-13-2006 08:22 AM

or use the root terminal within the app's system tool menu ...

aysiu 02-13-2006 02:48 PM

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.

Bresenham 02-20-2006 04:50 PM

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!

comatozed2 02-20-2006 11:14 PM

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 :p . ah the wonders of open source and freedom of choice :Pengy: .

https://wiki.ubuntu.com/RootSudo

cheers

comatozzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzed :D


All times are GMT -5. The time now is 11:02 AM.