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 <olivares14...@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, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to