LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Redhat 9 question (https://www.linuxquestions.org/questions/linux-software-2/redhat-9-question-76669/)

BajaNick 07-28-2003 01:28 PM

Redhat 9 question
 
I just upgraded to RH9 from RH8 and when the main gui login screen shows up i cant login as root it says i cant login from here but in RH8 i always was able to do that. How do i login using Kde or any gui as root now?

Corin 07-28-2003 01:46 PM

Re: Redhat 9 question
 
Quote:

Originally posted by BajaNick
I just upgraded to RH9 from RH8 and when the main gui login screen shows up i cant login as root it says i cant login from here but in RH8 i always was able to do that. How do i login using Kde or any gui as root now?
If you are running GDM as your Display Manager for the login screen, then make sure you have

AllowRoot=true

in /etc/X11/gdm/gdm.conf

trickykid 07-28-2003 01:50 PM

I would advise not to allow root login though as first of all running X and logging in thru X is usually open on port 6000. This can cause a security type problem. I would advise to just login as your normal user then su to root when needed. Its a better habit instead of just logging in as root to perform administration.

fancypiper 07-28-2003 01:51 PM

Apparently too many folk were logging into the root gui and running it that way (Not A Good Idea) rather than logging into the user account and administering properly.

BajaNick 07-28-2003 01:51 PM

What is GDM, I looked for that directory but i dont have it, I did have show hidden files/directories checked.

trickykid 07-28-2003 01:57 PM

Quote:

Originally posted by BajaNick
What is GDM, I looked for that directory but i dont have it, I did have show hidden files/directories checked.
What login manager are you using for X then, when you boot up to the GUI? GDM or KDM.. etc?

Have you searched for GDM? It might be located in a different place than specified, etc?

BajaNick 07-28-2003 01:58 PM

I fixed it. I had allow login root at login screen disabled, thanks

trickykid 07-28-2003 02:01 PM

Quote:

Originally posted by BajaNick
I fixed it. I had allow login root at login screen disabled, thanks
I hope you did take in consideration of the possible security flaws when logging in as root instead of logging in as a user then su to root when needed. Just a thought.

shadowhand 07-28-2003 02:53 PM

i never log in as root after i have my system configured... unless something goes REALLY wrong and it would be quicker to fix from a gui...

BajaNick 07-28-2003 06:33 PM

Oh man, you guys mean your not supposed to login as root through the gui? how do you do anything, You have to do everything thru the console while logged in as a user? then? I move from use to root all the time like that, I guess ill have to figure out a way how to do root stuff another way.

fancypiper 07-28-2003 06:43 PM

# System administration
The best ways I have found to administer my computer is with basic bash commands in a virtual terminal or when I am in a GUI, an x terminal (you can open lots of these, more than the 6 VTs.), or with another powerful shell, the well kept secret of mc (Midnight Commander), with a file manager, editor, and lots more handy tools that runs in command line or an x terminal.

If you use the gui log in, you will be on virtual terminal 1 (most installs default to 6 of these terminals) and your x session will be running in virtual terminal 7.

You have mouse support in the command line with gpm unless it has been disabled, so copy and paste is just as easy in virtual terminals as it is in x.

From a virtual terminal, you can switch from one terminal to another by holding down the alt key and pressing one of the function keys F1 - F6. If you are in x, hold down the control key as well as the alt and F<N> key and you will go that terminal. The terminal that was first used to login will be busy and if x was run from that terminal, the error messages generated by x will be shown. The others will display the login prompt until it is used to log in to an account. To return to x from a virtual terminal, press alt and F7 and you are back to your x session.

To change to the root account, use these commands from your user account. Note the change in the prompt.
Code:

[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]#

Remember, whatever you command in root (it's the "god" mode. You can bless or destroy at your whim) usually gets done if enough system is left to carry out the command. :D Sit on your hands and read at least 3 times before pressing the enter key when in root.

If you have Midnight Commander installed, type
Code:

mc
and press return and the Midnight Commander shell should run. Type control-o and you are in bash. Type control-o and you are in mc.
Code:

man mc
info mc

will give lots of info. You can use Midnight Commander in either user or root accounts.

Midnight Commander article w screen shots, etc.

You can do the normal linux copy/paste with the mouse from one virtual terminal to another by left clicking and swiping text in one, alt-FN to switch to the virtual terminal you wish to paste into, and middle click will paste the text that was swiped in the first virtual terminal into the file at the blinking cursor position.

To surf the internet from the command line, I recommend installing links as it displays most pages reasonably. Also, you can use it to post your questions about Linux here using it. Remember to refresh the posting page after login.

There should be no fear of the command line as it is actually easier to use than the gui. All that is necessary is to know the commands.

If you have zgv installed, you can even view images from the console command line if you want. :cool:


All times are GMT -5. The time now is 03:18 PM.