Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 03-21-2008, 07:12 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Cool How Can I Login as Root?

How to login as a root in mandriva linux 2008. can any boby help me to solve this problem.................
Old 03-21-2008, 08:57 AM   #2
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 389

Rep: Reputation: 49
Have you tried opening a terminal/console and then entering the command "su" ?
btw, your tag is bad for asking for help... you should use something like "how to login as root?" or something.

Last edited by TITiAN; 03-21-2008 at 09:04 AM.
Old 03-21-2008, 11:51 AM   #3
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
[Mod note]Fixed the thread title
Old 03-21-2008, 02:30 PM   #4
Senior Member
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
When you reach the boot screen, you can switch to a console screen (CTRL+ALT+F2 - CTRL+ALT+F6) and enter root at the Username prompt. Press the ENTER key. Enter your root password when prompted.

After you log into your normal GUI session as a regular user, open a terminal window. Enter su at the command prompt. Enter your root password when prompted.

If you are asking how to run a root GUI session, I strongly recommend against doing so because that may breach your Linux system security. I consider the risk to be so great that I will not help you take such an action. Please understand that I would no more help someone log into a root GUI session than I would help that person shoot him or her self in the foot ...
Old 03-21-2008, 02:56 PM   #5
Senior Member
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Lightbulb Mandriva How Can I login AS Root

This also A question for Ernie I do know that somebody should avoid to login in the GUI mode AS ROOT But for instance Suse never gives any warning when I log in as ROOt Fedora 8 only gives a warning when you log in as root in GUI mode
IF I log in as root in GUI mode I disconnect first my connection with the
internet so at that moment it is a stand alone box

What is is risk of log in this way

Because I can connect and disconnect the internet as a normal user the only
thing I need is the Administrator password of my modem with is off course different from root password

you,re comments will be most well come

all the best
Old 03-22-2008, 11:25 AM   #6
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 389

Rep: Reputation: 49
We're getting out of topic here...
I'm sure the discussion "root privileges for normal use" is dealt with intensely enough. You know, in Ubuntu distros the normal user has super-user rights! I couldn't find something approtiate, though, to link to.

However, if you do want a desktop session started as root:
Change into a tty-terminal (ctl+alt+F1-6); log in as root. Enter the command: startx -- :1. The graphical login manager can still be reached with ctrl+alt+F7 and the root session with ctrl+alt+F8. NOTE that these Fn keys can be different on different distros (tty's are 1-6 on Debian); simply going through them can be helpful when you're not sure.
Old 03-22-2008, 11:28 AM   #7
Senior Member
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
I agree the greatest risk involved with the act of logging in as the root user to a GUI session comes from the Internet. A secondary risk is the very real possibility that a user may take a destructive action in a moment of inattention. This could happen when using an administrative utility as root in a regular user session, but it would be less likely due to the reduced window of opportunity.

When I started using Linux about 1998 the ability to log into a GUI session as root was not disabled by default. Many users new to Linux (myself included) made a practice of running their systems as root because they did not know any better and because that was how Windows worked. As I gained proficiency using Linux I learned to perform administrative tasks as root from a regular user session. I found this to be faster and easier than to log out from my regular user session then log in as root or even to switch to a root GUI session.

Mandriva provides an excellent set of administrative tools accessible in MCC (Tools > System Tools > Configure Your Computer in the menu system) and can be opened with a single root password.

KDE provides its own set of administrative utilities in kcontrol. Some are for user level administration / configuration, while a few are system level utilities and require a root password.

If you attempt to use a utility which requires root access but does not request a root password, you can open a terminal window, su to root then run the utility.

You can edit the kde menu system to add a menu item for the utility and configure the item to run as a different user (root).

You can create a link to an application (icon) on your desktop to run the utility as a different user in the application tab by clicking the advanced options button.

Today I see no need to log into a root GUI session, it is simply more bother than it is worth (even when enabled). Linux is to Windows a bit like what English is to French (a different language). If you learn to think in Linux, rather than to translate from Windows to to Linux to begin with, your use of Linux will be far more efficient and natural feeling.

Following my previous post, I have given my decision to withhold information (even potentially dangerous information) a great deal of thought. The Open Source Community and Linux are about freedom and choice. They are also about sharing ideas and information. My decision went against every thing I believe, and seemed too akin to the concepts of book burning or thought control for comfort. For this reason, I provide the following with the hope that no user will act on the information provided:

The ability to log in to a GUI session as root is controled by the login manager.
The login manager for KDE is KDM (the K Display Manager)
KDM is configured with the resource control file located at /etc/kde/kdm/kdmrc

To edit this file, open a terminal window, su to root, then open the file in a text editor:
[user@localhost ~]$ su
Password: (Enter your root password here)
[root@localhost user]# kwrite /etc/kde/kdm/kdmrc
This example opens /etc/kde/kdm/kdmrc in kwrite as root. To open the file in a different text editor, replace kwrite with the name of the text editor of your choice. Do not use a word processor as a word processor may add unwanted character control codes which will not be recognized by kdm. If you use a different login manager, the resource contrrol file will be at a different location under the /etc directory.
Old 03-22-2008, 12:41 PM   #8
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Originally Posted by ronlau9 View Post
What is is risk of log in this way
The admonition to not log in to the GUI as root is to protect you from yourself. It makes no difference if you are connected to the internet.

I'm glad someone relented and told you how to do it---now you have total freedom.

What you will eventually learn is that system maintenance (and many other things) are easier and faster in terminal mode (as root when necessary).


root login

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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration