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

Rettifica! (was Re: ssh, sudo vs setuid (was Re: spegnere non da root))



On Mon, Oct 21, 2002 at 08:05:31PM +0200, /dev/null wrote:
> 3) per ogni chiave, mettere (in ~halt/.ssh/authorized_keys), prima della
>    chiave stessa, le opzioni
>    no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="/sbin/halt &" 
OOOPS!!! Ca%%ata immane, scusate!
command="/usr/bin/sudo /sbin/halt &"
visto che sudo non e` magico e non puo` "indovinare" che l'utente che
lancia /sbin/halt voglia fare "/usr/bin/sudo /sbin/halt"!

Sorry,
/dev/null



Reply to: