From owner-freebsd-questions Sat Sep 13 16:24:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA05467 for questions-outgoing; Sat, 13 Sep 1997 16:24:24 -0700 (PDT) Received: from usr01.primenet.com (root@usr01.primenet.com [206.165.6.201]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA05459 for ; Sat, 13 Sep 1997 16:24:21 -0700 (PDT) Received: from primenet.com (root@mailhost01.primenet.com [206.165.5.52]) by usr01.primenet.com (8.8.5/8.8.5) with ESMTP id QAA15901; Sat, 13 Sep 1997 16:24:06 -0700 (MST) Received: from foo.primenet.com (ip200.sjc.primenet.com [206.165.96.200]) by primenet.com (8.8.5/8.8.5) with ESMTP id QAA15014; Sat, 13 Sep 1997 16:24:34 -0700 (MST) Received: (from bkogawa@localhost) by foo.primenet.com (8.8.6/8.8.6) id MAA10120; Sat, 13 Sep 1997 12:38:30 -0700 (PDT) Date: Sat, 13 Sep 1997 12:38:30 -0700 (PDT) Message-Id: <199709131938.MAA10120@foo.primenet.com> To: durham@w2xo.pgh.pa.us Subject: Re: Making X go right away Newsgroups: localhost.freebsd.questions References: <199709131312.KAA06001@dragon.acadiau.ca> <341AC9A0.15FB7483@w2xo.pgh.pa.us> From: "Bryan K. Ogawa" Cc: freebsd-questions@FreeBSD.ORG, Michael Richards <026809r@dragon.acadiau.ca> X-Newsreader: NN version 6.5.0 #1 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In localhost.freebsd.questions you write: >Michael Richards wrote: >> >> Does anyone know how to make X fire up right away? I remember I just changed >> something in inittab for linux, but FreeBSD seems to be a little different >> :) >> >You just need to put "startx" or "xinit" in a startup script in >/usr/local/etc/rc.d in 3.0, or perhaps in /etc/rc.local in earlier >versions. Hm... I've never tried this, but it seems like this would start your X server as a root user. Does startx/xinit know enough to start xdm ? >There is also a trick you can play that will log you in automatically >and start up your desktop. Instead of the above, try >putting a file in your home directory called 'xstart' or whatever >with only the line 'xinit &' in it. Then in your startup script do: >su username < /usr/home//xstart & >Be *sure* to make these scripts 700 or 744 . Hm. This does sound like you're starting your X server as root, which seems a more insecure than need be, under the principle of least privelige. You can also start xdm in your rc.local, which will provide an X-based login screen. When you log in, all of the x clients will run as the user logged in. -- bryan k ogawa http://www.primenet.com/~bkogawa/