On 18 Jan 2010, at 20:48, Vittorio Stile wrote: > Infatti non mi chiede più la password per effettuare l'accesso, ma chiede > ancora la password per effettuare il reboot o lo shutdown, sotto posto > l'applescript > > display dialog "AppleTV" buttons {"Riavvia", "Spegni", "Annulla"} default > button 3 > copy the result as list to {buttonpressed} > > try > if the buttonpressed is "Riavvia" then do shell script ¬ > "ssh front...@appletv.local sudo reboot" > if the buttonpressed is "Spegni" then do shell script ¬ > "ssh front...@appletv.local sudo shutdown -h now" > end try >
Questo è ancora più semplice ;) Collegato all'appletv e digita sudo visudo Cerca questa stringa: # User privilege specification root ALL=(ALL) ALL %admin ALL=(ALL) ALL cambiala come riportato qui: # User privilege specification root ALL=(ALL) ALL %admin ALL=(ALL) NOPASSWD:ALL In questo modo, non dovrai più digitare alcuna password per tutti i comanda che ne necessitano... ;)
_____________________________________________________ Maclist - iMaccanici - http://www.imaccanici.org Gestione iscrizione: http://liste.imaccanici.it/options.cgi/maclist-imaccanici.it