[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: login automatico



On Sun, Dec 30, 2001 at 01:51:43AM +0100, David Gardi wrote:
> >Esite un modo per fare il login
> >automatico di un utente finita la fase di boot?
> >Senza usare xdm o simili.
> No, andrebbe contro l'infrastruttura della sicurezza di sistemi unix.

L'unica cosa che andrebbe contro l'infrastruttura dei sistemi unix
e` impedire qualcosa a root (e infatti i vari sistemi implementano
le MAC, per esempio lids, devono cambiare l'infrastruttura del kernel).

man login, cerca l'opzione -f
E poi prova in inittab cose del tipo:

## TRUCCO ...
##aa:2345:respawn:/bin/bash --login </dev/tty12 >/dev/tty12 2>&1
aa:2345:respawn:/bin/sash </dev/tty12 >/dev/tty12 2>&1

# Action on special keypress (ALT-UpArrow).
##kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."
kb::kbrequest:/usr/bin/open -us -- /bin/bash --login

# Format:
#  <id>:<runlevels>:<action>:<process>
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/bin/login -f root </dev/tty2 >/dev/tty2 2>&1
3:23:respawn:/bin/login -f utontonormale </dev/tty3 >/dev/tty3 2>&1



Reply to: