You are not logged in.

#1 2012-07-20 22:41:13

mitsaras
Member
Registered: 2012-07-20
Posts: 2

[SOLVED] I can login to my DE (xfce) only as root

Hi everyone, i am setting up my first arch machine and i got a weird issue.
I installed xfce and xdm according to the guide. I got the lines

id:5:initdefault:
x:5:respawn:/usr/bin/xdm -nodaemon
xt:5:wait:/usr/bin/chvt 7

in my /etc/inittab file, copied .xinitrc and .xsession to home and uncommented

exec startxfce4

in .xinitrc.

Thing is when i get the xdm login prompt and enter any username and password, it fails to load, while when logging in as root, xfce loads normally.

Any help is apprecciated, thanks

Last edited by mitsaras (2012-07-21 15:26:51)

Offline

#2 2012-07-20 23:24:08

johnislarry
Member
From: Seattle, WA, USA
Registered: 2010-08-18
Posts: 19
Website

Re: [SOLVED] I can login to my DE (xfce) only as root

Since login works normally for root and not for the user, it's probably a permissions issue.  Maybe the permissions are off on your .xsession or .xinitrc files? According to

https://wiki.archlinux.org/index.php/XDM

~/.xsession is supposed to have permissions of 744, and you should be the owner.  Can you show us what

 $ ls -la ~ 

gives?

Offline

#3 2012-07-20 23:27:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] I can login to my DE (xfce) only as root

Also when loggin in as root, X uses a whole different set of files.  This is not to say that the permissions check is not a good idea - it is, but any number of things could be wrong with those files, not just permissions.  When you log in as root, /home/USERNAME/{.xinitrc,.xsession} are not used, /root/{.xinitrc,.xsession} is, or - in their absence - the system-wide files (in /etc/X11).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2012-07-21 09:06:33

mitsaras
Member
Registered: 2012-07-20
Posts: 2

Re: [SOLVED] I can login to my DE (xfce) only as root

Permissions were ok, Tribly spotted it. Had to copy .xinitrc to my regural user home and it worked just fine! Thanks a lot

Offline

#5 2012-07-21 09:23:50

johnislarry
Member
From: Seattle, WA, USA
Registered: 2010-08-18
Posts: 19
Website

Re: [SOLVED] I can login to my DE (xfce) only as root

Nice! You should edit the title of the thread to begin with [SOLVED] in case somebody has a similar problem later.

Offline

Board footer

Powered by FluxBB