Click to See Complete Forum and Search --> : cant enter as root


hugs_to_tux
10-12-2001, 06:04 PM
i tried
chsh <path of startx> root
at the prompt just to avoid the trouble of typing startx evertime i enter at rumlevel 3.
by this command as soon as i enter root and the password startx runs.
now the problem is when i enter into anyother terminal(ctrl+alt+f2 etc) as root it again starts Xwindow and since it is already up and running it gives fatal error.so i am not able to enter as root on any of the terminal.the only place i am root is the xwindow itself buti cant use the xwindow's terminal also as the moment i run it it also displays the same fatal error( this fatal error is realted to the xwindow being already running) and then quits.how do i undo the changes i made without being root or is there any way i can become root and undo the changes.if yes then what will be the changes i will have to make.
ps: i am using RedHat 7.1
pliss guide.....
saurabh.

StarbuckZero
10-12-2001, 06:09 PM
Try doing "su" superuser then your root password then "startx". I don't know if it would work but you could try it.

hugs_to_tux
10-12-2001, 06:43 PM
hey i guess starbuckzero didnt get my problem correctly.the problem is of startx being executed all the time i enter as root and then it doesnt allow me to enter as root again saying that xwindow is already running and so showsa fatal error.

DMR
10-13-2001, 03:53 AM
I don't understand why you're going about it that way; the whole idea of runlevel 3 is that it is non-graphical, after all. Why not just make runlevel 5 (which boots directly into X) your default runlevel? You won't have the problems your having with X respawning every time you spawn a new shell.
Boot into single-user mode (runlevel 1), or boot from a floppy to get to a prompt and undo your changes. Then edit the line in /etc/inittab which reads "id:3:initdefault:". Change the 3 to 5 to set the default to runlevel 5.

[ 13 October 2001: Message edited by: DMR ]