PDA

View Full Version : shutting down knoppix on failed login attempt



someuser77
11-30-2006, 09:01 PM
Hello,
I want to make the livecd a little secure so I understood I can change /etc/inittab from this:

1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1
2:2345:respawn:/bin/bash -login >/dev/tty2 2>&1 </dev/tty2
3:2345:respawn:/bin/bash -login >/dev/tty3 2>&1 </dev/tty3
4:2345:respawn:/bin/bash -login >/dev/tty4 2>&1 </dev/tty4 to this:
1:12345:respawn:/sbin/getty 38400 tty1
2:2345:respawn:/sbin/getty 38400 tty2
3:2345:respawn:/sbin/getty 38400 tty3
4:2345:respawn:/sbin/getty 38400 tty4 so the user will be asked to enter a password, is it right?
My question is can I change something so the computer will turn off if the user entered the wrong user or password when he is asked to login?