X does not work as regular user, but it does at root
parv.0zero9+freebsd at gmail.com
Sat Apr 17 02:10:24 UTC 2021
On Fri, Apr 16, 2021 at 2:48 PM Antonio Olivares wrote:
> On Friday, April 16, 2021, Gary Aitken wrote:
> > On 4/16/21 7:28 AM, Antonio Olivares wrote:
> >> I have succeeded in installing FreeBSD 13 on an old eight core
> >> machine. I created a regular user, but cannot login to X. I am
> >> sending this from root account.
> >> Xorg.conf
> >> I am attaching tmp.txt from working root. I have captured the output
> >> from /var/log/Xorg.log.* from when I try to run startx as regular
> >> user.
> >> Thank you in advance.
> > It looks like some kind of keyboard issue, judging from the log file,
> > even though it says it is not fatal.
> > You might check the permissions on the tree /usr/local/share/X11/xkb
> You are correct in your assessment. The folder /tmp is not writable by my
> user and as a result cannot create the /tmp/k* file by keyboard-config.
> Reading the file permissions should be 1777 so as root I ran chmod 1777
No, no ...
> But after shutdown (does not shutdown) I press reboot, all is lost and upon
> logging in and running startx the same thing happens. I have to login as
> root run startx, run chmod 1777 /tmp/*, logout and then I can login as a
> regular user.
Instead of setting setuid on each & every file & directory under /tmp, you
to set those permissions on /tmp directory itself. Then anyone can create
files in /tmp & not overwrite each others'.
But before you do that, please post the output of ...
% /bin/ls -Fold /tmp
... below is from on my computer, all the directories are created (much) after
machine has rebooted & I do not set the permission on any files & directories in
drwxrwxrwt 7 root wheel uarch 9 Apr 16 15:50 /tmp/
... you can set the permissions on /tmp via as root ...
% chmod 1777 /tmp
More information about the freebsd-questions