Hi Tony,

Thank you for your good instruction.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11-Jul-2002/06:22 -0700, truc nguyen
<[EMAIL PROTECTED]> 
wrote:
>I have a Red Hat 7.2 machine. I'd like to login as
>root automatically after the machine is rebooted. How
>do I make it works ?

  1. It is not good to routinely log in as root.
  2. Login as a normal user.
  3. Open an xterm.
  4. Use the command: su -
  5. Do as much configuration as you like, even using
graphical tools 
if
     you know the commands to start them.
  6. Exit the root session using the command: exit
  7. See #1 above.

I have a button on my panel that launches a root
xterm. The associated
desktop file in ~/.gnome/panel.d/default/launchers
looks like this:

[Desktop Entry]
Name=Root Shell
Comment=xterm for sysadmin
Exec=xterm -e su - root
Icon=/usr/share/pixmaps/gnome-term-linux.png
Terminal=false
MultipleArgs=false
Type=Application

You can right-click on the panel and add a launcher
using the above 
info.
There should be a similar way to do the same thing in
KDE. While 
working
as root in an xterm you can start graphical
applications. You should 
add
" &" at the end of the command line to run the
application in the
background. It will run, but you will still be able to
use the command
line in the terminal window. If you do not run the app
in the 
background,
then the terminal will not give you a command line
prompt until you 
close
the application.

Another way to quickly access a root console is to use

[Ctrl]-[Alt]-[F1 thru F6]. To get back to your
graphical desktop, use
[Alt]-[F7]. That is very useful if your X session
freezes because of 
one
program and you don't want to restart the X server.
You can get to a
console and kill the bad program. You can even leave
the console login
running and switch back to the graphical desktop. When
you switch back 
to
the console, it will still be logged in. this works,
but I generally 
like
using an xterm because I can copy/paste text and run
graphical
configuration apps.

There are ways to do exactly what you asked, but I
recommend against 
using
any of them. You can do a lot in Linux as a normal
user after the 
machine
is setup. Easy access to a root command line is good
enough for 
everything
else.


Tony


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to