X security?


 
Thread Tools Search this Thread
Operating Systems BSD X security?
# 1  
Old 02-27-2005
X security?

I finally got 'xdm' running and was able to log in as a regular user. I did a pkg_install and installed the gnome-desktop package, but I haven't been able to find a way to get it to work for my regular user. I created a ~/.xsession file with the following lines in it:

/usr/local/bin/metacity &
/usr/local/bin/gnome-panel &

but when I log in, X bombs out and I get sent back to the xdm login screen. If I check ~/.xsession-errors log file, I see:

Xlib: connection to ":0.0" refused by server
Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)
xsetroot: unable to open display ':0'
Xlib: connection to ":0.0" refused by server
Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)

I thought that maybe my assumption that ~/.xsession should work was flawed and so I became root and modified /etc/X11/xdm/Xsession and changed the 'fvwm' line to /usr/local/bin/metacity &. This didn't work either. I got the same errors and the bomb out back to the xdm login screen. So... I changed it back to 'fvwm' and now I STILL get the same bomb out and errors even though the file is back to normal. So... there must still be some lock files or something I am not aware of. I cleared our the /tmp dir again and aso got rid of any dotfiles/dirs that the were added to my regular user's home when I tried to run 'metacity' and 'gnome-panel' to no avail.
# 2  
Old 03-02-2005
Have you tried starting X the traditional way using startx? If startx doesn't work, the X server is probably the problem, not xdm.

Enoch
# 3  
Old 03-03-2005
Yes. 'startx' works fine. But something occurred to me which I haven't had the chance to test yet. My .xsession file is not executable. I think it needs to be. Hopefully I'll get a chance to try this over the weekend.
# 4  
Old 03-03-2005
If executable rights are not set for the user, it's probably what's preventing you from accessing the file.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question