LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-29-2004, 09:11 PM   #1
The Oate
Member
 
Registered: May 2004
Location: Massachusetts
Posts: 134

Rep: Reputation: 16
Question Logging in as Root


Simple question that I'm sure has been asked. How do I do this? I'm running Mandrake 10 and I need to log in this way so I can edit the XF86Config-4 file to fix my screen resolutions.
 
Old 07-29-2004, 09:14 PM   #2
Vincent_Vega
Member
 
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
at the command prompt type:
su
then enter root's password at the prompt; exit when you're done.
 
Old 07-29-2004, 09:48 PM   #3
The Oate
Member
 
Registered: May 2004
Location: Massachusetts
Posts: 134

Original Poster
Rep: Reputation: 16
Will that work if I'm in GRUB and just open a console window up?
 
Old 07-30-2004, 05:49 PM   #4
Vincent_Vega
Member
 
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
In Grub? Well, I've never used Grub so I don't really know what you're saying but it should work in any console. If you get to a new login just use the login name 'root'. Is this what you're asking?
 
Old 07-30-2004, 11:04 PM   #5
The Oate
Member
 
Registered: May 2004
Location: Massachusetts
Posts: 134

Original Poster
Rep: Reputation: 16
Sorry, what I said wasn't right. I meant I use the gnome desktop and it's set to automatically boot into the graphical desktop. How am I to log in as root since it's set this way?
 
Old 07-30-2004, 11:09 PM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
You have two options:

1) Open a terminal window. There should be a link on your panel or in the menu. Then type
su
and enter the root password. Then you can use vim or type
gedit /etc/X11/XF86Config-4

2 Hit the keys
ctrl+alt+f1
then you can login as root and vi the file

Last edited by darthtux; 07-30-2004 at 11:10 PM.
 
Old 07-31-2004, 01:19 PM   #7
jbolt
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19

Rep: Reputation: 0
Another option: Open a terminal window and login as root as above. btw you know your logged in as root when the $ sign changes to #

Type: kwrite <enter> This will open kwrite in a window and from there you can browse for your file to edit.
 
Old 07-31-2004, 05:36 PM   #8
Vincent_Vega
Member
 
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
Like stated above, you can just open a terminal and use the 'su' command. Or you could use Ctrl-Alt-F1 (F2, F3... they all open a new, independent terminal). Then use Ctrl-Alt-F7 to get back to Gnome.
You don't want to boot into root because it's just not good linux practice so I think using the terminal emulator is the best idea. Then exit when you're done! No need, in my opinion, to go into an entirely new login for some basic needs.
 
Old 08-01-2004, 03:16 AM   #9
bibilit
Member
 
Registered: Nov 2002
Location: Montrouge / FRANCE
Distribution: MANDRAKE 9.2/ DSL / smalllinux / Ubuntu 5.1
Posts: 202

Rep: Reputation: 30
Hi, Mandrake hides root user by default.

If you want to log as root from the GUI, you probably should unhide it.

From Kde, you can use KDE control center ... probably similar from Gnome.
 
Old 08-01-2004, 11:50 AM   #10
Fuhzy Wuzzie
LQ Newbie
 
Registered: Aug 2004
Location: Colorado, USA
Distribution: Mandrake Linux 10.0
Posts: 3

Rep: Reputation: 0
OK, I am having the same problem also. I need to be able to access my hard drive files (to install a Mozilla plugin) but it says that only the root user can access files. Well, from the previous posts I have learned how to switch to root, but how do I switch to root and still run through the KDE desktop? I mean, viewing/deleting/etc. files while in KDE. Is there any way to do this?
And I am very new to Linux so this is not an attack, merely a question. Is one of the main drawbacks to Linux not being able to login to root without serious security issues? Because I know with Windows XP you can log in as Administrator and have about the same security risks as a normal user. And even normal users can edit/view/delete files without admin privileges. So why can't you do this with Linux? Again, this isnt a pro-Windows statement, its just a question...
 
Old 08-01-2004, 12:00 PM   #11
pongmaster
Member
 
Registered: Jul 2004
Location: London, England
Distribution: Mandrake 10.1
Posts: 300

Rep: Reputation: 30
Quote:
Originally posted by Fuhzy Wuzzie
OK, I am having the same problem also. I need to be able to access my hard drive files (to install a Mozilla plugin) but it says that only the root user can access files. Well, from the previous posts I have learned how to switch to root, but how do I switch to root and still run through the KDE desktop? I mean, viewing/deleting/etc. files while in KDE. Is there any way to do this?
Yes. Open Konsole, login as root as normal.
When you're logged in as root type "konquerer" (without the quotes) and the Konquerer file browser will open in su mode. You can edit/delete/whatever your files easily and graphically.
Quote:
And I am very new to Linux so this is not an attack, merely a question. Is one of the main drawbacks to Linux not being able to login to root without serious security issues? Because I know with Windows XP you can log in as Administrator and have about the same security risks as a normal user. And even normal users can edit/view/delete files without admin privileges. So why can't you do this with Linux? Again, this isnt a pro-Windows statement, its just a question...
Separating user mode from super user (or administrator) is one of the security precautions of Linux - there are many reasons for seperating users from administrators, the main one being that if anybody has access to your computer they can't delete all your system files and make your machine unuseable without knowing the root password.
 
Old 08-01-2004, 01:01 PM   #12
Fuhzy Wuzzie
LQ Newbie
 
Registered: Aug 2004
Location: Colorado, USA
Distribution: Mandrake Linux 10.0
Posts: 3

Rep: Reputation: 0
No sorry, that doesn't work. But I am probably unclear. I am trying to access the file:/mnt/hd so I can go into the Mozilla program folder (or any other folder on my drive for that matter). Now, I can run konqueror and it takes me to a konqueror window, but when I navigate to file:/mnt/hd there is nothing there. Does that mean its not mounted?
I'm sorry about my lack of knowledge but I am really new to Linux and I have never done ANYTHING in DOS or a text based OS before...
 
Old 08-01-2004, 01:38 PM   #13
pongmaster
Member
 
Registered: Jul 2004
Location: London, England
Distribution: Mandrake 10.1
Posts: 300

Rep: Reputation: 30
Ah, yes, right.
Linux doesn't store it's files like Windows - the reason why there's nothing in your /mnt//hd folder.
Mozilla resides in a couple of places. One is /home/(name)/.mozilla It's a hidden file so you may have to check the 'show hidden files' in the view menu.
There's another Mozilla folder in your / directory, but that's probably hidden too.
 
Old 08-01-2004, 01:54 PM   #14
Fuhzy Wuzzie
LQ Newbie
 
Registered: Aug 2004
Location: Colorado, USA
Distribution: Mandrake Linux 10.0
Posts: 3

Rep: Reputation: 0
OK, well I still can't find the Mozilla Plugins folder (not sure if it even exists) but I am now trying out GNOME and finding it much more like Windows. I know that sounds bad, but I have figured out how to install script based things through the Run Application command, and I got the Flash plugin installed successfully.
But, my KDE is really jacked up. If I try to start some programs (Screem among others), my entire system will lock up. Linux, the screen, the keyboard, everything. The only thing I can do to get out of it is to hit the reset button on my pc. And then it wants me to hit Y and it does some sort of disk checking and finds zeros in iodes or something, which it fixes. But now my KDE sometimes just freezes during web browsing too. I have not seen if GNOME will freeze too, I will try that now, but do you know how to fix this?
 
Old 08-02-2004, 09:02 AM   #15
pongmaster
Member
 
Registered: Jul 2004
Location: London, England
Distribution: Mandrake 10.1
Posts: 300

Rep: Reputation: 30
If you're experiencing that many problems with KDE, I would have said that it was probably hardware related.
You're not running an ASUS mobo by any chance are you?
Could you please post some hardware specs?
 
  


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
logging in as root M O L8ingN2dust Ubuntu 24 01-16-2006 04:49 PM
Logging in to Root NathanCohen2003 Linux - Software 3 07-10-2004 04:11 PM
Logging in as a root??? FastSwimmer Mandriva 4 03-01-2004 04:05 AM
Logging in as root... The_fuzzy_cow Mandriva 3 11-27-2003 10:47 PM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM


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