On Sat, Aug 7, 2010 at 2:47 PM, Polytropon <free...@edvax.de> wrote: > 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, So if I delete the file /etc/rc.local and make a file ~/.login, make it executable (chmod +x ~/.login), and add the line [ -f /tmp/.X0-lock ] && startx in that file and I will have the same result but without loggin in as root? I will try it out and thank you for the suggestion. I was going to try the autologin.c file and compile it, a similar solution is done for slackware. Regards, Antonio _______________________________________________ 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"