danix ha scritto:grazie per il chiarimento mario, ma ipoteticamente, avere più di un utente collegato al sistema non può essere dannoso allo stesso modo?? per questo non mi era chiara la questione delle tty...
tty1: login root
tty2: login utente
tty1: telinit 1
tty2: sbattuto fuori
tty2: login utente, accettato, puo` fare, limitato dai demoni che mancano
tty2: telinit 3, rifiutato
tty1: telinit 1, eseguito
Il problema del tuo dubbio e` descritto in man 8 init:
Codice: Seleziona tutto
CHANGING RUNLEVELS
After it has spawned all of the processes specified, init waits for one of its descendant processes to die, a powerfail signal, or until it is signaled by telinit to change the sys-
tem's runlevel. When one of the above three conditions occurs, it re-examines the /etc/inittab file. New entries can be added to this file at any time. However, init still waits
for one of the above three conditions to occur. To provide for an instantaneous response, the telinit Q or q command can wake up init to re-examine the /etc/inittab file.
quindi se /etc/inittab contiene
Codice: Seleziona tutto
# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
tutti i tty sono attivi in single user mode!
Se non ti piace, metti ai c2...c6:2345.
La filosofia UNIX, quindi quella di PJV, lasciare spazio al sysadm,
non come altre "distruzione" (scusa conraid) dove sei tassato da idiota.