[mythtv-users] Problems with automatic shutdown/restart
HP-mini
blm-ubunet at slingshot.co.nz
Sat Mar 30 02:03:00 UTC 2013
On Sat, 2013-03-30 at 00:09 +0000, Thomas Boehm wrote:
> HP-mini wrote:
>
> > Mine runs...
> > Command to set wakeup time:
> > sudo sh -c "/usr/bin/setwakeup.sh $time"
>
> What's the advantage over "sudo /usr/bin/setwakeup.sh $time"?
>
> You have to put the command /bin/sh in the sudoers file allowing the
> mythtv user to execute things like sudo sh -c "rm -rf /"...
> _______________________________________________
Good question..
I guess that "sudo sh .." is independent of shell used or ignores the
shebang.
My example dates back to *buntu 8.04.
I would not put /bin/sh in the sudoers file.
More information about the mythtv-users
mailing list