From owner-freebsd-questions@FreeBSD.ORG Sat Aug 7 19:47:59 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D97B01065700 for ; Sat, 7 Aug 2010 19:47:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 97EED8FC0A for ; Sat, 7 Aug 2010 19:47:59 +0000 (UTC) Received: from r55.edvax.de (port-92-195-116-86.dynamic.qsc.de [92.195.116.86]) by mx01.qsc.de (Postfix) with ESMTP id 451963D4C4 for ; Sat, 7 Aug 2010 21:47:37 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o77Jlba5001663 for ; Sat, 7 Aug 2010 21:47:37 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 7 Aug 2010 21:47:37 +0200 From: Polytropon To: freebsd-questions@freebsd.org Message-Id: <20100807214737.75ebc397.freebsd@edvax.de> In-Reply-To: References: <4C566252.6010605@otenet.gr> <4C5CFEE0.5060000@speakeasy.net> <201008071157.00180.eliaschr@cha.forthnet.gr> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2010 19:47:59 -0000 Just an addition: My solution works in the same way (modification of /etc/ttys and /etc/gettytab), but I avoid this step: On Sat, 7 Aug 2010 04:49:00 -0500, Antonio Olivares wrote: > Then created file /etc/rc.local > with > su - user_to_be_logged_in -c startx In fact, I use the autologin-user's ~/.login script (which is executed after login) to contain a line to check for X's lock file and then run startx. This gives the possibility to the specific user to NOT have to need root permissions to change the behaviour after autologin. The simple line in ~/.login is this one: [ -f /tmp/.X0-lock ] && startx Depending on requirements, this can be seen as an advantage or disadvantage (usually in considerations about security); it's also possible to create a "loop" that an accidental logout won't drop the user to "DOS". :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...