Auto logon at the console?

David A. Bandel david
Sat Jun 25 12:40:30 PDT 2005


Regurgitating the prose of Michael Hipp Michael Hipp <Michael at hipp.com>
on Sat, 25 Jun 2005 10:32:30 -0500:
begin  
|KDE and Gnome have the ability to set a certain user to log in 
|automatically on first boot. Is there any way to auto logon a certain 
|user at the console with no X/GUI running at all?
|
|Thanks.
|
|(No tongue lashings please, this is for a particular situation in which
|
|it is an appropriate thing to do.)
|

Yes, you'd do a console session the same way as X.  It could run a menu,
a program, whatever.  

Couple of ways to do this, but the easiest is probably just to use
inittab to push a program (could even be bash) to a TTY.  You'll want to
ensure you do this as a user vice root.

Another way is to run a program that does what you want via a startup
script.  Again, you'll want to run the program (menu, whatever) as a
non-privileged user.

Method 1 has as its advantage that if the program is terminated, it will
autorestart (using spawn in inittab).  An init script would exit and not
restart unless you disabled exit for the program (or didn't provide one
in the menu).

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
		Nemesis Racing Team motto
GPG key autoresponder:  mailto:david_key at pananix.com


More information about the Linux-users mailing list