I can start X and KDE as root but when I try to do that as a user I get the following
Fatal server error
can't move old log file ("/var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old")
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): unexpected signal 2
The above will come when I abort the starting with ctrl-C
Otherwise it tells something like:
_X11TransSocketINETConnect() can't get address for localhost:6000: Name or service not known
xinit: Invalid argument (errno 22): unable to connect to X server
xinit: No such process (errno 3): Server error
I haven't added anything to .xinitrc but I made the changes to rc.conf like displaymanager and enabling the Xsession.
User is added to following groups AFAIK audio,video,users,wheel
Any idea what's wrong? I'm using the KDE 3.5.2 on gentoo
edit: I tried to add "exec startkde" on .xinitrc but it didn't change things.
edit2: Okay, I added xdm to default run level so it started straight to KDM where I could login into KDE. Now the problem is that I can't switch to root from console. I know I need to be in the wheel group but I ran "gpasswd -a baa wheel" and "usermod -G wheel,audio,video,users baa" but I still can't use those. In KDE, when I try to exec something which requires root access it says "Su returned an error". Any idea how to fix?