Operating System - Linux
1827870 Members
1156 Online
109969 Solutions
New Discussion

Problem logging as root in text mode

 
Girish_26
Occasional Contributor

Problem logging as root in text mode

Dear Friends,

I'm using Redhat Linux 8.0. I'm not able to login as root in text mode but i can login as root in graphics mode. I have checked the tty entry in /etc/securetty file it is as it was ...but still problem is same. What should I have change.

Thanks in advance.
7 REPLIES 7
Alexander Chuzhoy
Honored Contributor

Re: Problem logging as root in text mode

can you describe us what's happening when you try to login in text mode-what error message do you get?
Gopi Sekar
Honored Contributor

Re: Problem logging as root in text mode


whats the error message you are getting.

the most likely problem could be settings and profile files for your shell (most probably bash)

check .bashrc/.bash_profile/.profile files in /root directory and ensure there are no 'exit' statements in them.

in graphical login, KDE/GNOME will not execute these profile programs. these will get executed only when a shell program is invoked in gui (konsole/gnome-term) etc.

Regards,
Gopi
Never Never Never Giveup
Sergejs Svitnevs
Honored Contributor

Re: Problem logging as root in text mode

Please check your securetty file again. It is a good idea to allow root to login via the serial console adding /dev/ttyS0 to /etc/securetty.
Huc_1
Honored Contributor

Re: Problem logging as root in text mode

Just create a test new user and see if he can login in text mode ?

if yes then the problem is probably not the skel files use at user creation time but some of your root specific file/setup, look in .bashrc .bashp_profile ( compare/diff those new one to your root one )

Be also carefull this could also mean soneone has tempered with your root account!

Check log file in /var/log/* and tell us about it.

Also do a stat on all the above file and see if this logical with your creation and modification time.

Keep us informed of progress.

Jean-Pierre Huc
Smile I will feel the difference
Gary Cantwell
Honored Contributor

Re: Problem logging as root in text mode

Please take a moment to assign points to those who have assisted you, here's how:

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Thanks,

Gary
Rick Garland
Honored Contributor

Re: Problem logging as root in text mode

Is it just root as login to text?

If it is all you can modify the /etc/inittab file - example of inittab line that starts xdm

Note this is run level 5, change to run level 3 and the xdm will not start.

# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon

Also on the initial graphics login screen there is an option you can check to have login in text mode.

Girish_26
Occasional Contributor

Re: Problem logging as root in text mode

Thanks to all for the response provided...