Date: Fri, 16 Apr 2021 16:09:46 -1000 From: "parv/freebsd" <parv.0zero9+freebsd@gmail.com> To: Antonio Olivares <olivares14031@gmail.com> Cc: Gary Aitken <freebsd@dreamchaser.org>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: X does not work as regular user, but it does at root Message-ID: <CABObuOonnS-yixt97FP%2BY6k8rRM-_mo2CvN6CJ4GWwaGqsf7yA@mail.gmail.com> In-Reply-To: <CAJ5UdcMN1bmQg8Gs7J%2Bhb633gTwrkPp_bUYU5ZveQPSbNJo5dg@mail.gmail.com> References: <CAJ5UdcOo4NdgYmJx%2B871YKr-ZoyYK6-RWqttTYybNu=puwpjrg@mail.gmail.com> <f0ba307a-84a4-8ec7-1722-ca81bcc78d5e@dreamchaser.org> <CAJ5UdcMN1bmQg8Gs7J%2Bhb633gTwrkPp_bUYU5ZveQPSbNJo5dg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > /tmp/* > 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 need to set those permissions on /tmp directory itself. Then anyone can create the 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 /tmp ... drwxrwxrwt 7 root wheel uarch 9 Apr 16 15:50 /tmp/ ... you can set the permissions on /tmp via as root ... % chmod 1777 /tmp - parv
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOonnS-yixt97FP%2BY6k8rRM-_mo2CvN6CJ4GWwaGqsf7yA>