Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FreeBSD Auto Login

159 views
Skip to first unread message

Joost Bekkers

unread,
Aug 19, 2002, 1:31:46 PM8/19/02
to
On Mon, Aug 19, 2002 at 09:16:52AM -0400, Joseph Wright wrote:
> How do I set FreeBSD 4.6.2 to automatically login as a specific user
> during bootup?
>

Assuming you want to autologin on one of the virtual terminals:

First edit /etc/gettytab, find the one for 'Pc' and duplicate it
with a unique name and add al=<username>:

For 4.5R you would end up with something like:

P|Pc|Pc console:\
:ht:np:sp#115200:
Pc-foo:\
:ht:np:sp#115200:al=user:


Next edit /etc/ttys and change the line for the terminal you
want to auto-login on from

ttyv0 "/usr/libexec/getty Pc" cons25 on secure

to

ttyv0 "/usr/libexec/getty Pc-foo" cons25 on secure

And finally let init(8) know we changed something

kill -HUP 1

But before you start doing this think 2 or 3 times about the
insecurity you're creating with this.

-
greetz Joost
jo...@jodocus.org

To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message

0 new messages