Solved adduser and xorg ?

Hello.

After successfully install FreeBSD and xorg as root, I have added users with adduser.

Sadly, after login into the new user and run startx, there are those error messages: ;-(
See attachment image.
newuserx.png


Note that, when login as root, startx is working and X session is ok.

Must something be done after adduser for xorg ?
I have checked Xorg.0.log but it does not help me, it talk about keyboard but I do not understand what is the problem...

Thanks.

Fre;D
 
Hello.

After successfully install FreeBSD and xorg as root, I have added users with adduser.

Sadly, after login into the new user and run startx, there are those error messages: ;-(
See attachment image.
newuserx.png


Note that, when login as root, startx is working and X session is ok.

Must something be done after adduser for xorg ?
I have checked Xorg.0.log but it does not help me, it talk about keyboard but I do not understand what is the problem...

Thanks.

Fre;D
Hi.

You can't start X as your normal user because X is trying to read/write files in the /tmp directory that only have root permissions. There really should never be a reason to start X as root. To fix this, you can log into the console(Not X) as root and remove the files in the /tmp directory with rm -rf /tmp/*. After the files are removed, try logging in with your normal user and start X using startx again. If it still doesn't work we can help you start troubleshooting from there.

Try #X -configure and copy the resulting xorg.conf into /etc/X11/, then startx with your normal user.
Please don't use X -configure to configure X anymore. It is no longer reliable and while it may successfully create and xorg.conf file, there is a good chance it won't work. X automatically configures itself quite well now without an xorg.conf file so you shouldn't need the file at all anymore unless you have some possibly uncommon hardware or are using an Nvidia card.
 
Hello.

Sadly, emptying /tmp did not help, same error message when startx by normal user.
Idem when adding xorg.conf into /etc/X11

Has /tmp been set to 1777 permissions?

Hum, I did not set anything, how must it be done ?

Thanks
 
As a side note, if you didn't have the permissions set on /tmp, you may want to check and make sure the same permissions are set for /var/tmp as well. Permissions for /tmp and /var/tmp are usually already correctly set during installation unless you did a manual install, in which case, they would need to be set by yourself manually.
 
As a side note, if you didn't have the permissions set on /tmp, you may want to check and make sure the same permissions are set for /var/tmp as well. Permissions for /tmp and /var/tmp are usually already correctly set during installation unless you did a manual install, in which case, they would need to be set by yourself manually.

Yes, I did a custom manual install, so /var/tmp has to be set too.

Thanks for the tip.

[EDIT] Indeed this solves problem with Xauthority ;-)

Fre;D
 
Back
Top