linux and users
Janina Sajka
janina at rednote.net
Mon Mar 14 02:29:29 UTC 2005
Samuel Thibault writes:
> Shaun Everiss, le ven 25 fév 2005 05:56:41 +1300, a dit :
> > ... is there a autologon or something?
>
> There is no standard I'm aware of for text mode, but you may build your
> own: in /etc/inittab, there are lines like:
> 1:2345:respawn:/sbin/getty 38400 tty1
>
> You may replace this by
> 1:2345:respawn:/bin/su -c sh - yourlogin < /dev/tty1 > /dev/tty1 2>&1
>
Very, very cool, Samuel. Thank you. I have been looking for something
like this to use on my portable machine for a long time. Thank you,
thank you, thank you! <grin>
Now, one little refinement:
I suggest taking out the '-c sh' as it's superfluous and only launches a
subshell and does not execute default configuration scripts.
So, I think a better invocation is:
1:2345:respawn:/bin/su - yourlogin < /dev/tty1 > /dev/tty1 2>&1
Sweet. Very sweet.
Janina
More information about the Blinux-list
mailing list