LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Cannot log into X as root (https://www.linuxquestions.org/questions/fedora-35/cannot-log-into-x-as-root-203862/)

otis2003 07-11-2004 07:08 PM

Cannot log into X as root
 
I realize that logging into the X server as root is not for everyday use and can be dangerous. That being said, it is sometimes easier to do sys admin work as root in a graphical environment when offline, etc.

Anyway, I am not sure why, but I can no longer log in from the GDM as root. In fact, I had not done it in a long time, but when I attempt now I get:

---------------------------------------------
"Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installtion problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem."

/etc/X11/gdm/PreSession/default: Registering your session with wtmp and utmp
/etc/X11/gdm/PreSession/default: running: /usr/bin/X11/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/gdm/:0.Xservers" -h "" -l ":0" "root"
---------------------------------------------

I am not out of disk space - not even close.

Anyone have any ideas? Thanks.

(Fedora Core 2 - kernel 2.6.6-1.435.2.1)

otis2003 07-12-2004 10:04 AM

I can't believe I am the only one ....
 
Hasn't anyone had this problem?

Anyway ... I tried reinstalling GDM, but still nothing.

I am beginning to think it's a problem with X.org. Some config file or start up script or something. I don't know. Any ideas would be most helpful.

me@fedora 07-12-2004 05:46 PM

Have you looked at your /tmp directory permissions. use chmod 777 /tmp to set it and then you will be able to log in as root.

me

otis2003 07-12-2004 05:52 PM

OK ... PISS ON ALL OF YA THEN!!!

I WILL FIGURE IT OUT MYSELF!!!

:D

[kidding]

I added the user 'sysadmin' with root privileges. and that seems to work ... and 'sys admin' uses 'root's' home directory. So, it seems that I now have 2 'roots'. Don't tell anyone from Australia this, or they will laugh!

HA

:cool:

otis2003 07-12-2004 06:15 PM

Quote:

Originally posted by me@fedora
Have you looked at your /tmp directory permissions. use chmod 777 /tmp to set it and then you will be able to log in as root.

me

Just looking at the permissions on the /tmp directory. It has rwx for both user and group, but has rwt for other. What is 't'?

User and group are both 'root' by the way.


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