PDA

View Full Version : logging out



artikid
10-06-2004, 10:22 AM
Hello
I managed to install on HDD Knoppix 3.4.
When I boot, however, it doesn't ask for a password. The system starts with the 'knoppix' account.
How do I log out and login as 'root' (I'fve already got a root password)
Regards
Artikid

user unknown
10-07-2004, 03:05 AM
getting tired of answering this...
edit /etc/inittab
instead of

1:..../bash ... tty1
2:................ tty2
....
6:2345:....... tty6

You need

2:2345:respawn:/sbin/getty 38400 tty2
3:2345:respawn:/sbin/getty 38400 tty3
...


Don't modify the line 1...tty1 in the beginning, this will be your security-fallback, if something isn't working.

The first entry is just a name (1, 2, ...6)
respawn means, after terminating, start again.
If you logoff, a new login-command will appear. That's respawn.
/sbin/getty is the login-shell-program
38400 is a speed value - hm - read about it in the manpage for getty.
tty1 - tty6 is the virtual console, bound to ALT-F1 .... ALT-F6.

After saving (as root) the new settings, tty1 should remain the same, but on ALT-F2, you should get a login.
If it works, you may modify the entry for tty1 too.

Here is a special remark necessary:
Entry 1 looks different:


1:12345:respawn:/sbin/getty 38400 tty1
2:2345:respawn:/sbin/getty 38400 tty2

The numbers :2345: or :12345: specify in which runlevel the command is involved.
And only tty1 is opened in runlevel 1, because 1 is the single-user-mode.
There you may not open a second console.