LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-04-2004, 02:56 AM   #1
une
Member
 
Registered: May 2004
Location: Australia
Distribution: Mandrake 10, Puppy Linux 2.13
Posts: 201

Rep: Reputation: 30
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?
 
Old 07-04-2004, 03:23 AM   #2
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
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
 
Old 07-04-2004, 03:59 AM   #3
Foxy
Member
 
Registered: Jul 2003
Distribution: SuSE 9.1 Professional
Posts: 81

Rep: Reputation: 15
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).
 
Old 07-04-2004, 09:29 AM   #4
prara
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandriva, Ubuntu, Fedora
Posts: 24

Rep: Reputation: 15
bad idea. this is potentially dangerous. root access could modify almost everything.
 
Old 07-04-2004, 10:12 AM   #5
Foxy
Member
 
Registered: Jul 2003
Distribution: SuSE 9.1 Professional
Posts: 81

Rep: Reputation: 15
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.
 
Old 07-04-2004, 10:27 AM   #6
prara
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandriva, Ubuntu, Fedora
Posts: 24

Rep: Reputation: 15
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
 
Old 07-05-2004, 02:36 AM   #7
une
Member
 
Registered: May 2004
Location: Australia
Distribution: Mandrake 10, Puppy Linux 2.13
Posts: 201

Original Poster
Rep: Reputation: 30
Thanks for the assistance all. I've got to where I wanted to go.
 
Old 07-13-2004, 11:09 AM   #8
Prisonnet
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
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.
 
Old 07-13-2004, 02:54 PM   #9
Prisonnet
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
Is it possible?
 
Old 07-13-2004, 04:19 PM   #10
jackassjim
Member
 
Registered: Jul 2004
Location: Montréal
Distribution: Yoper
Posts: 40

Rep: Reputation: 15
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...)
 
Old 07-13-2004, 04:22 PM   #11
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
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?

Last edited by Micro420; 07-13-2004 at 04:24 PM.
 
Old 07-13-2004, 04:23 PM   #12
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
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.
 
Old 07-13-2004, 04:45 PM   #13
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
Quote:
Originally posted by Micro420
Seriously, and how is this different than Windows?
exactly....*shudders*
 
Old 07-13-2004, 04:47 PM   #14
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
If all you want to do is

Last edited by Lakota; 07-13-2004 at 04:56 PM.
 
Old 07-13-2004, 04:49 PM   #15
BIACS
Member
 
Registered: Apr 2004
Location: Arlington, TX
Distribution: Fedora Core 4 64bit
Posts: 95

Rep: Reputation: 15
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.
 
  


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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 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
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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

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
Open Source Consulting | Domain Registration