LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices



Reply
 
Search this Thread
Old 03-12-2008, 06:23 PM   #1
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Mandriva 2010
Posts: 88

Rep: Reputation: 15
how to enable GUI root login in Mandriva?


Can somebody tell me how to enable the root login, under GUI, in the newest Madriva? I found some entries in the LQ forums but everyone seems to be obsessed with telling evryone else how bad it is to log in as root and how dangerous it is and how highly not-recommended it is.
Please, don't tell me that..
I see the need for root login if, for example, I forget the user's password. then what? I run my system on HIGH security level so that no one can mess with my files.
The login screen doesn't show ANY ID's. It's important for me that I would access the system from an administrator's level.
Please, tell me where the configuration files are and what to change there, to get the root access. Thanks.
 
Old 03-12-2008, 08:30 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,334

Rep: Reputation: 144Reputation: 144
It's a two step process, assuming you are running kde on mdv 2008:

1. Open the Control Center(Start Menu > Tools > System Tools > Control Center). In Control Center, go to System Administration > Login Manager. In the Login Manager go to the "Users" tab. Hit the "Administrator Mode" button on the bottom and enter the root password when prompted. In the "Hidden Users" panel, remove the check mark from the entry for root. Close the Control Center.

2. You have to also edit /etc/kde/kdm/kdmrc, but you must be root to do that. Open a console and run:

$ kdesu kwrite /etc/kde/kdm/kdmrc

Enter the root password when prompted. The kwrite text editor will come up with root privileges and display the kdmrc file. Go down to the line that reads:

AllowRootLogin=false

and change that line to:

AllowRootLogin=true

Save the changes and close kwrite.

Logout. Try logging in as root from the login screen; it should work.
 
Old 03-12-2008, 11:51 PM   #3
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Mandriva 2010
Posts: 88

Original Poster
Rep: Reputation: 15
thank you. it worked perfectly. I appreciate your help.
 
Old 03-13-2008, 03:01 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by zebra90210 View Post
I see the need for root login if, for example, I forget the user's password. then what?
FYI:
Usually, there are one or more consoles available that can be accessed by pressing <ctrl><alt><Fx> (x = 1..6).
Switch to one of those consoles while in the graphical environment and login as root.
Run the command passwd the_name_of_the_user_who_has_forgotten_the_password.
Once you've changed the password, logout and press <ctrl><alt><F7> to return to the graphical environment.

Last edited by Wim Sturkenboom; 03-13-2008 at 03:02 AM.
 
Old 03-13-2008, 07:20 AM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,244

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
Originally Posted by zebra90210 View Post
I run my system on HIGH security level so that no one can mess with my files.
At the moment you are running the GUI as root, you don't run your system on high security level anymore. That is, any applcation can do anything, because everything which is executed is executed with root credentials. I don't need to tell you not to log in as root. One day you'll notice.

In addition to what Wim Sturkenboom said, you can start any single application application by pressing ALT-F2 and then press "Advanced" or "Options" and change your credentials.

Last but not least, logging out as user in the GUI, and then log in as administrator to do an administrative task is the Windows way. Very awkward and time consuming. *nux was designed to offer you the best tool to do your work, and hence offer alternative, safer and faster ways to accomplish what you need.

jlinkels
 
  


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
Enable remote root login in /etc/securetty jon_k Linux - Software 5 03-17-2011 12:52 AM
How to enable auto login for root in Redhat alix123 Programming 5 06-27-2007 01:43 AM
How to enable root login on 6.06 dapper? Sjonnie48 Ubuntu 6 06-11-2007 09:36 AM
Enable root login in wu-ftpd? Sevoma Linux - Software 5 02-04-2005 07:49 PM
Disable/Enable Root Login @ Console ryanstrayer Linux - Security 4 01-18-2002 05:49 PM


All times are GMT -5. The time now is 06:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration