Xfce4 not working for root

I have installed xfce4 as per http://www.freebsd.org/doc/handbook/x11-wm.html

After reboot, i directly got the xdm login prompt.

I can login using normal user, but not as root.

Code:
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/local/bin/startxfce4" >> ~/.xsession
% chmod +x ~/.xsession

I could excute above using normal user only. When i tried with root, i got error "/bin/sh" no such event

Secondly, Is it possible to login as root in terminal when logged in with normal user.(while in xfce4 gui)
 
Don't run any window manager as root. Either open a terminal (like x11/xterm) and run [cmd=]su -[/cmd] or switch to a terminal using Ctl + Alt + F2 and log in as root there.
 
A) DD is right, don't log in to X as root. It's bad, mkay?

but

B) Although you should not do that, it should still work. "no such event" is odd.

The echo commands are adding to a file, but there may have been something there already. Please show the actual contents of /root/.xsession with
% cat /root/.xsession
 
There is no .xsession file in root. Nor was there for my normal user.
Code:
$ ls .x*
.xsession-errors

However i did find .xsession-errors file in /root
Code:
$ cat .xsession-errors
exec: /usr/local/bin/xsm: not found

Also, su - does not work.
Code:
$ su -
su: Sorry
 
Back
Top