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-21-2008, 08:12 AM   #1
mintirp
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, 09:57 AM   #2
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
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 10:04 AM.
 
Old 03-21-2008, 12:51 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
[Mod note]Fixed the thread title
 
Old 03-21-2008, 03:30 PM   #4
ernie
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, 03:56 PM   #5
ronlau9
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, 12:25 PM   #6
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
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, 12:28 PM   #7
ernie
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:
Code:
[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, 01:41 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
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).
 
  


Reply

Tags
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 05:27 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 09:28 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 04:44 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 12:39 PM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-06-2004 12:40 AM


All times are GMT -5. The time now is 10:46 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