LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How do I login as root? (https://www.linuxquestions.org/questions/mandriva-30/how-do-i-login-as-root-200921/)

une 07-04-2004 02:56 AM

How do I login as root?
 
I am a newbie who has installed Mandrake 10. On startup the graphical login page appears showing icons for the 2 users that were detailed by me during installation, but with no option to login as root. How do I login as root?
I also chose not to have a password for root when installing, which I now regret. How do I now add a password for accessing root priveledges?

SBing 07-04-2004 03:23 AM

Right mate, the reason that root isn't shown on the graphical login is because you're not really meant to be running that many programs as root. If you need to execute a root command, open up a terminal window and type in:

su -

It will prompt you for a password, in your case none at the moment. To change your root password do this:

su -
(Password:) (Press enter)

Now type in passwd

That will allow you to change your password.

It's be a very long time since I used mandrake, I know you can enable root login for the graphical interface but it is not a good idea. Most of the GUI administration tools will ask you for a password first anyway, because they use the "su" command first :).

Hope that's cleared things up :)

Steve

Foxy 07-04-2004 03:59 AM

I found that I could login as root at that screen just by entering 'root' as the login and putting in the root password. (I'm guessing that you should just leave the password box blank if there isn't one).

prara 07-04-2004 09:29 AM

bad idea. this is potentially dangerous. root access could modify almost everything.

Foxy 07-04-2004 10:12 AM

Well, there is no other way when a graphical installer requires access to certain directories, and I'm forced to use it for moving around some files because I don't know the correct commands at the CLI.

prara 07-04-2004 10:27 AM

ok the command is just SU (stands for switch user)
SU without any attributes will assume that you want to be a root.
then type your password
if you want to browse your folders in a GUI using Konqueror, just type konqueror
You are now root accessing Konqueror

une 07-05-2004 02:36 AM

Thanks for the assistance all. I've got to where I wanted to go.

Prisonnet 07-13-2004 11:09 AM

But how do you add root as a user to log into in the GUI?

You can't run everything from "su", most ./*.pl don't work unless you're logged as root, ie VMware, which I'm trying to install.

Prisonnet 07-13-2004 02:54 PM

Is it possible?

jackassjim 07-13-2004 04:19 PM

boot as root
 
I just recently installed mandrake at home today for the first time.. don't know anything about it but i did just what you want to do today. I'm at work now so can't guide you through the steps. in the configure panel you can set up the boot options. there you'll see users.. and there are some hidden users checked. Uncheck boot and log off...

There you are.

Hope it helps (if not.. at least you know it's possible...)

Micro420 07-13-2004 04:22 PM

Quote:

Originally posted by prara
bad idea. this is potentially dangerous. root access could modify almost everything.
Seriously, and how is this different than Windows? :o

Micro420 07-13-2004 04:23 PM

Quote:

Originally posted by Prisonnet
But how do you add root as a user to log into in the GUI?

type mcc in the konsole

From there, you can fudge around and find the options to change login options. I forget where as I'm using WIndows 2000 at work right now.

ehawk 07-13-2004 04:45 PM

Quote:

Originally posted by Micro420
Seriously, and how is this different than Windows? :o
exactly....*shudders*

Lakota 07-13-2004 04:47 PM

If all you want to do is

BIACS 07-13-2004 04:49 PM

Quote:

Originally posted by Prisonnet
Is it possible?
From a terminal window you would type in kcontrol or look for Configure your Desktop in your Start Menu (Start/System/Configuration/Configure your Desktop). Once in the KDE Control Center, browse down to System/Login Manager. You will ahve to enter the Administrator Mode and enter your root password. Once in Admin Mode, go to the Users tab and remove the X in the box next to root. You will then have an icon to enter as root.


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