2010-05-31, 20:51
adufresne Wrote:You can get rid of that password stuff by updating your /etc/sudoers file with the visudo(8) command and adding these lines:
Code:Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt
xbmc localhost = (root) NOPASSWD: SHUTDOWN_CMDS
That's good to know. Unfortunately if you also want to switch to the ATV OS via script then you need to add "XBMC" to the admin group anyway for the mount and cp commands