ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released

Polytropon freebsd at edvax.de
Sat Aug 7 19:47:59 UTC 2010


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 <olivares14031 at gmail.com> 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, ...


More information about the freebsd-questions mailing list