LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-02-2003, 10:17 PM   #1
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Rep: Reputation: 30
Arrow Can't login as root (Mdk 9.1)


I have recently installed Mandrake 9.1 on my Windows box. Dual-boot works fine. A lot of extra entries in LILO, but I think I can figure that out. What I am having issues with is when I get to the graphical log-in screen, all that's listed is my user account. There's no way/option for me to log in as root. In order to log in as root, I have to go to a virtual console, which, of course, is command-line only and means I can't follow a lot of the instructions I recieve from the helpful people on several forums I browse.

I read on one post (somewhere) about how I could use any login "client" I desired - and how to set this up. But I still can only log in as a user, regardless of which login manager I choose. Any help???

 
Old 11-03-2003, 12:39 AM   #2
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Hi!
The only thing you have to do when you are in the graphical log-in screen is typing 'root'; in fact when I press 'r' I pre-select the root user (even if this user is previously hidden) then select it (with the mouse, for instance) and you will be able to loggin as root
Regards
 
Old 11-03-2003, 12:53 AM   #3
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Thumbs down Wrong!


No, No I was wrong:
Quote:
The only thing you have to do when you are in the graphical log-in screen is typing 'root'; in fact when I press 'r' I pre-select the root user (even if this user is previously hidden) then select it (with the mouse, for instance) and you will be able to loggin as root
You can see which users are hidden and change this with 'kde control center', in the system section you'll find something like 'acces administrator', then choose 'administrator mode'...
I'm sorry about the last post
Regards
 
Old 11-03-2003, 02:03 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Which graphical login are you using? GDM, KDM or XDM? I seem to recall an option somewhere in KDM disallowing root logins. I can't remember where this is, though. Try man kdm. You shouldn't really need to login in as root. Just log in as a regular user and type su and then give the root password when you want to do something only root can do.
 
Old 11-03-2003, 06:08 AM   #5
sharkee
Member
 
Registered: Jul 2003
Location: Australia
Distribution: Kubuntu 5.10 Ubuntu Dapper
Posts: 220

Rep: Reputation: 30
Be warned the downside of login as root . If you make a mistake as root . Many a good installation has been ruined by trying to learn while logged as root. Been there done that.
Regards
SHARKEE
 
Old 11-03-2003, 07:36 AM   #6
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Here's how, but I do not recommend that you login as root in windows. DO NOT connect to the net if you are on broadband, shouldn't on dial-up either.

This is for KDE. Start thingy then Configuration then KDE then System then Login Manager. Click the tab users. Then click 'Selected only' then put a x next to the ones you want to appear.

I can't stress this enough. You should not login to x as root. I can not think of any reason for you to do so either. One mistake and your done.

Later

 
Old 11-03-2003, 07:56 AM   #7
iceco
LQ Newbie
 
Registered: Aug 2003
Location: FJ,CN
Distribution: RH,MDK
Posts: 20

Rep: Reputation: 0
run "init 3" as root and then startx
 
Old 11-03-2003, 07:58 AM   #8
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
I want to thank everyone for their advice on how to fix this - I have several options to go through in my attempts to get this straightened out. Very nice.

Also, I want to express my gratitude for the concern about me logging in as 'root'. It's really not an issue, tho'. This is a test/learning installation - if I blow it - I reinstall. Done that nearly half-a-dozen times this weekend already. The reason I need to log in as 'root' is that my network config is out of whack and the only fix suggested that I haven't tried requires that I have 'root' privileges to configure the network interface and how it's accessed. So, I'm not going willy-nilly as 'root', I am attempting to do something that REQUIRES that I be logged in as 'root'. It says so in the dialogue box that pops up - doesn't ask for the password, just pops up and reads something like 'Stop. You must be logged in as "root" to do this' or close.

Good day and thanks again. I'll post whether anything works (and which it was) when I get it done.
 
Old 11-03-2003, 08:40 AM   #9
FallGuy
Member
 
Registered: Sep 2003
Location: Indianapolis, IN USA
Posts: 31

Rep: Reputation: 15
I know you've heard this before, but you can do what you are trying to do without logging is to the graphical interface as root. All of the graphical windows that you can launch from the menus can also be launched - as root - while logged in as a normal user. Of course, all of the command line things can be done as well - and without the risk of being root in a full blown graphical shell.

Just log is as a normal user, open a terminal session (Konsole in KDE), type su (for super user) and hit enter - followed by your root password. Once you are "root", you can then type the command for whatever graphical tool you want to launch and you will be able to do the things only root can do in it. For example, if you want to edit your modules.conf file, make yourself super user root, type kwrite at the # prompt in the Konsole and press enter. Now you are using a nice graphical editor, but you have all the priviledges of root.

If you don't know what command launches the graphical tools, just find them on your "K" menu, right click them and look at the properties. The command that launches that tool will be listed right there. If it isn't in a folder that is in your path, you may have to preceed the name of the tool with the path to it (e.g. /usr/sbin/kwrite).
 
Old 11-03-2003, 10:10 AM   #10
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
Thanks FallGuy. You're right, I've heard all of that before. But never with such detail in explanation. I've been told "login as 'su' and then do it" but never the whole "open a Konsole window..." step-by-step. I'd love to have you write the tech docs I need to read. To state it more simplistically, "Muchas gracias."

Now, to what actually worked!!! I had previously gone into the Start thingy>Configuration>Login menu/app and modified my login to start with GDM instead of KDM, but it wouldn't come up that way when I logged out. After I left this forum, I went to the Mdk box and rebooted (from virtual console) rather than logout (from GUI). When the login screen came up it was Gnome (as I'd configured) AND required that I type in my username and password. Then I went ahead as 'root' and changed the configurations as needed. (BTW, the network config changes didn't help.) So, the big issue was that I needed to make the changes suggested AND reboot. So, in addition to all of the other useful/helpful info here, that's the solution that worked for me.
 
Old 11-03-2003, 11:29 AM   #11
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
One thing you might find helpful is, once you're in X Window environment, open a terminal, su to root, and issue

linuxconf

At least on Mandrake, this provides an interface for configuring just about anything--as well as examining dozens of logs, etc. One of the first choices you'll see is "networking" and I wouldn't be surprised if you could do all the configuring you needed to do, right there. Maybe!
 
Old 11-03-2003, 11:59 AM   #12
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
thanks for the advice on logging into the konsole as 'root', but I get errors trying to run linuxconfig from the konsole. don't know why, but I do. i found a work-around, anyway.
 
Old 11-03-2003, 05:08 PM   #13
FallGuy
Member
 
Registered: Sep 2003
Location: Indianapolis, IN USA
Posts: 31

Rep: Reputation: 15
No thank you needed - but appreciated. I think most people that are seasoned enough to give useful advice often forget just how little they knew when they first started out. As a result they take too much for granted and end up leaving helpful tips that only the other seasoned pros can follow.

Oh yeah ... and I used to teach (not Linux).
 
Old 11-03-2003, 05:19 PM   #14
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
I have experienced the "you're too dumb to understand the answer" phenomenon (sp?) a LOT since coming to the Linux world. As a matter of fact, I stayed away from Linux for a long time for that very reason - I'd ask questions and the standard answer was "read the docs". Not inaccurate. Not rude or arrogant. But definitely burdensome until you learn the jargon to understand the docs. One hell of a learning curve for the "green-as-a-gourd" bunch.

And you have my respect. I used to think I could teach. I knew the material. Forwards and backwards. But why couldn't these lunkheads get it??? Found out that most of teaching was figuring out how they LEARNED. (Red) Hats off to you. (had to do it)
 
  


Reply



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
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
How do I login to GUI as root in MDK 10 dc101 Mandriva 8 06-23-2004 06:36 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
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 12:07 PM

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

All times are GMT -5. The time now is 07:42 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
Open Source Consulting | Domain Registration