Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Aug 2010 19:33:58 -0500
From:      Antonio Olivares <olivares14031@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
Message-ID:  <AANLkTimFJkB0vaV0jwcVVuaeWG2Zq_UQ6shd%2B=O%2B3B28@mail.gmail.com>
In-Reply-To: <20100807214737.75ebc397.freebsd@edvax.de>
References:  <4C566252.6010605@otenet.gr> <4C5CFEE0.5060000@speakeasy.net> <AANLkTin1vfjfM98gmc2P5a-hZ78q_PDChyFTbGqTbJA_@mail.gmail.com> <201008071157.00180.eliaschr@cha.forthnet.gr> <AANLkTi=YoER4nBaq2noap_pFbhcLD8BLYbRxzBpcK5JP@mail.gmail.com> <20100807214737.75ebc397.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 7, 2010 at 2:47 PM, Polytropon <freebsd@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 <olivares14031@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:
>
> =A0 =A0 =A0 =A0[ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimFJkB0vaV0jwcVVuaeWG2Zq_UQ6shd%2B=O%2B3B28>