hey, I want the computer to turn on and autologin to console with a nonroot user . I've almost gotten it to work, here is what i have done:
------------------------------------------------------------------------------------------------
following www [dot] linuxgazette.com/issue72/chung.html (would have liked to make a hyperlink, but i need more posts
) very closely, I wrote the program autologin:
int main() {
execlp( "login", "login", "-f", "student", 0);
}
compiled it with gcc, and placed it in /usr/local/sbin. then ive modiffied the first line of inittab to look like this:
c1:2345:respawn:/sbin/agetty -n -l /usr/local/sbin/autologin 38400 tty1
------------------------------------------------------------------------------------------------
problem is that it still prompts student for a password (it logs them in, but the password must still be manually entered)
ive thought up a couple of solutions, but i dont know how to go about doing them, these are:
a) make the user student passwordless (not sure if this is possible)
b) modify my autologin program to somehow enter the password?
NOTE im pretty sure that what is in inittab is solid, but the problem could very well lie there.
thanks for any ideas/help