LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-07-2004, 12:35 PM   #1
MackH
LQ Newbie
 
Registered: Jun 2004
Location: Columbia, SC
Distribution: Mandrake 10.0
Posts: 5

Rep: Reputation: 0
Loggin into my GUI as root user


As you can guess I am a Linux newbee. I have recently installed Mandrake 10.0, which is by the way an excellent version!

When I was asked if I wanted to auto login a single user I said "yes". Subsequently, there have been times that I needed to be the 'root' user to have full permissions to transfer files to my /usr/bin/ directories, and so on.

My question is, can I now create a login for root? I have tried doing this in the KDE/Mandrake interface, but I keep getting the "root is already a user" type of message.

If I cannot do this, how can I allow the only user - me - permisssion to copy or move files as I described above?
 
Old 06-07-2004, 12:39 PM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
root is a user by default. You can become root by opening a terminal and run
Code:
su -
where you will be prompted for the root password that you wrote down during installation. You do remember that password, don't you? You can also run
Code:
kdesu [program]
where you will get a GUI pop-up asking for root password.
HTH!
 
Old 06-07-2004, 02:43 PM   #3
jabberwock486
Member
 
Registered: Jul 2003
Posts: 74

Rep: Reputation: 15
you still can do it. i just installed my ATI drivers, got them to work but i still need to tweak them more.

now i just get the traditional linux boot screen. after i log in i type startx. so if i wanted to use the GUI as root i can do that.

however the su command will benifit you more, infact i havnt even really loged on as root in the GUI
 
Old 06-07-2004, 03:11 PM   #4
askjeffro
LQ Newbie
 
Registered: May 2004
Location: Indiana
Distribution: Mandrake/Slack 10.1
Posts: 27

Rep: Reputation: 15
I think what you are looking for, that is if you want to use the GUI as root is the following:

In Mandrake 10:
System > Configuration > Configure your Computer >
Enter Root Password
Select "Boot" icon > Select "Autologin" Icon
From here it's easy. You will notice you have the option"Launch GUI at system start", uncheck that.

The next time your system starts it will bring you to the text login. Enter "root" , <enter>, Root's password. Once acknowledged type "startx", this will lauch the GUI as root.

You can also login as yourself and start x.

Mandrake will not allow, as far as I know (very little), root to autologin ever, so its safe. Hope that helps.

Last edited by askjeffro; 06-07-2004 at 05:13 PM.
 
Old 06-07-2004, 03:39 PM   #5
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
Please note that it is not the best idea to auto-login as root every time just as an added sanity check before you accidentally delete some file or whatever.

One handy shortcut I've found is the "-c" option for su that allows you to provide the command that you wish to execute as root and logs root out after the command is done.

su -c '<command_to_execute>'
 
Old 06-08-2004, 10:25 AM   #6
MackH
LQ Newbie
 
Registered: Jun 2004
Location: Columbia, SC
Distribution: Mandrake 10.0
Posts: 5

Original Poster
Rep: Reputation: 0
Smile A work around for my problem

I made myself a little work around that accomplished what I needed to do: copy a file from my download/unarchive folder to my /usr/bin/ folder using the GUI File Manager. Here is what I did.

System/Configuration/Computer/<password>/Permissions

I then selected the file manager that uses the funky looking 'M' icon (It runs sort of like a FTP) I can't remember the program name right now and I'm not at home on my system to look - Sorry! In the settings for that program I told it that it should allow 'root' to use it.

When I launched the program it allowed me to copy the files I wanted to put in /usr/bin/ right where I needed them.

The neat thing I can see in linux (and I'm just barely scratching the surface I know) is that there is always more than one way to skin a cat!
 
Old 06-08-2004, 11:18 AM   #7
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
For me, I just log off and log back in. Takes like 2 seconds.

Then when the login screen comes up, it'll ask for a username and I just type in 'root' and enter my 'root' password. It's like I'm using Windows XP!
 
  


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
Can't run gui (X) programs as root user nazdrowie Linux - General 25 12-02-2008 01:24 AM
no gui for normal/root user.. aaru_ali Suse/Novell 0 10-24-2004 12:37 AM
Loggin into slackware as root Doctor Orange Linux - Newbie 6 08-17-2004 07:56 PM
how can I change to root user in the KDE GUI nicoc Linux - Newbie 3 07-23-2004 12:01 PM
Loggin In As Root MrJBot Linux - Newbie 2 10-30-2003 03:41 PM


All times are GMT -5. The time now is 11:20 PM.

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