LinuxQuestions.org
Visit Jeremy's Blog.
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 02-12-2006, 08:08 AM   #1
Pr_009
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Roaming about
Posts: 31

Rep: Reputation: 15
root login problem in ubuntu 5.10


How to login as root in ubuntu 5.10. Really i don't get it.
 
Old 02-12-2006, 09:18 AM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
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.
 
Old 02-12-2006, 09:20 AM   #3
llewellyn
Member
 
Registered: Jan 2006
Location: johannesburg south africa
Distribution: SUSE 9.3
Posts: 43

Rep: Reputation: 15
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
 
Old 02-12-2006, 09:20 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,174
Blog Entries: 4

Rep: Reputation: 428Reputation: 428Reputation: 428Reputation: 428Reputation: 428
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
 
Old 02-12-2006, 10:55 AM   #5
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
https://wiki.ubuntu.com/RootSudo
 
Old 02-12-2006, 11:29 AM   #6
crewblunts
Member
 
Registered: Jan 2004
Location: Connecticut, USA
Distribution: Slackware & Ubuntu
Posts: 53

Rep: Reputation: 15
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
 
Old 02-12-2006, 02:47 PM   #7
Gezzer
Member
 
Registered: Jan 2006
Distribution: kubuntu
Posts: 36

Rep: Reputation: 15
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
 
Old 02-12-2006, 06:17 PM   #8
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
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.
 
Old 02-12-2006, 08:09 PM   #9
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Rep: Reputation: 15
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
 
Old 02-12-2006, 09:00 PM   #10
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
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.
 
Old 02-13-2006, 07:49 AM   #11
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
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

Last edited by Flesym; 02-13-2006 at 07:51 AM.
 
Old 02-13-2006, 08:22 AM   #12
Gezzer
Member
 
Registered: Jan 2006
Distribution: kubuntu
Posts: 36

Rep: Reputation: 15
or use the root terminal within the app's system tool menu ...
 
Old 02-13-2006, 02:48 PM   #13
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
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.
 
Old 02-20-2006, 04:50 PM   #14
Bresenham
LQ Newbie
 
Registered: Sep 2005
Location: Lisboa/Beja, Portugal
Distribution: Ubuntu 5.10
Posts: 3

Rep: Reputation: 0
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!
 
Old 02-20-2006, 11:14 PM   #15
comatozed2
LQ Newbie
 
Registered: Dec 2005
Location: Dubai
Distribution: Red hat 9, FC4, Ubuntu, Suse 10
Posts: 20

Rep: Reputation: 0
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
 
  


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
login root problem khebs Linux - Security 1 08-30-2005 02:10 PM
SUSE 9 root login problem suchi Linux - Networking 2 07-24-2005 12:44 PM
Problem Login As Root, Help!!!!! abulafiar Linux - Newbie 4 08-15-2004 02:54 PM
problem with root-login (messed all up?) notREALly Slackware 3 11-20-2003 08:56 AM
strange problem with root login/su schbond Linux - General 6 10-17-2003 09:52 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration