LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   X won't start as user, works as root... (https://www.linuxquestions.org/questions/linux-general-1/x-wont-start-as-user-works-as-root-238225/)

gsk 10-05-2004 10:32 AM

Quote:

Originally posted by quatsch
the user's x-related files are those hidden files starting with .x and .X. Well not all since there are things like .xine. I have
.xinitrc
.xsession
.Xauthority
.Xdefaults
.Xresources

They can be deleted or backed-up to another place w/o problem since X will replace them with the defaults if not found.

I'm wondering if it's your window/desktop manager that's acting up - if the wm/dm exits, X will exit as well (in general, if the last thing that gets started during X startup exits, X exits with it).

You can start just X with an xterm with
startx /usr/X11R6/bin/xterm
maybe this works?

AHHH...I think you are getting somewhere now... starting xterm works! Ugly...but it works.

So you know...I use gnome 2.6 as a dm.

gsk 10-05-2004 10:46 AM

Okay,...

So I start GDM and try and log in from there...but It doesn't work either...BUT it does give me more information. It points me to the .xsession-errors file. Wish I had know that before!!!


Code:

soinvlaptop1:~# cat /home/poldervc/.xsession-errors
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/X11/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "poldervc"
/etc/gdm/Xsession: Beginning session setup...

** (gnome-session:3220): WARNING **: Unable to read ICE authority file: /home/poldervc/.ICEauthority

I checked the permissions on .ICEauthority , and it was
Code:

-rw-------  1 root    root        13143 Oct  5 09:36 .ICEauthority
Should this be set to different permissions....I'll change it and see....

gsk 10-05-2004 10:50 AM

Quote:

Originally posted by gsk
Should this be set to different permissions....I'll change it and see....
I'M IN!!!!!

I chmod'd the .ICEauthority file to 777...and bada-bing....I am back in X under my user. Somehow down the line something must have changed it's permissions to only allow root to read it, so my user account was dead.

Thanks quatsch and gibiman for your help. It turns out it was a permission thing like every one suspected...but finding out what file was the trick.

Now I know to check .xsession-errors if I ever have another problem. I can't believe this information didn't come up somewhere before.

THANKS AGAIN!!!!

P.S. Interestingly enough...the original font warnings I posted had nothing to do with the problem.

ekman 10-05-2004 11:22 AM

Note that many X-files (files belonging to X-windows that is :-)
must have the "suid" bit set. For instance;
ls -l /share/usr/X11R6/bin/XFree86
-rws-wx--x 1 root root 1838036 Apr 4 2004 /share/usr/X11R6/bin/XFree86

Note the "s" in the access rights. Check this and add if necessary with; chmod +s (some file)

NOTE: the "suid" bit makes is possible for ordinary users to run
a program as "root", which is necessary for "X", but do not
misuse it because it is a huge security risk.

gibiman 10-06-2004 01:25 AM

Sorry i did not want to post anything
 
I just do not know how to delete


All times are GMT -5. The time now is 03:07 AM.