From: Martin Beck <getmemar...@yahoo.se> > Thanks for your answer! my only problem now is how to run it as root. > I'm user 'freevo' now. Do I need to run as the 'root' user or can I > still be 'freevo' and do a workaround?
You should add user 'freevo' to the /etc/sudoers file. Or, better, add the commands that freevo may run as root in that file. For example, add the following entry: Zeus ~ # cat /etc/sudoers | grep freevo freevo ALL=(ALL) NOPASSWD: /usr/bin/nvram-wakeup, /bin/mount, /sbin/grub-set-default, /bin/ps, /bin/egrep, /sbin/shutdown In freevo's local_conf.py, add 'sudo' to the commands that freevo executes, for example: Zeus ~ # cat /home/freevo/.freevo/local_conf.py | grep sudo SYS_SHUTDOWN_CMD = "sudo shutdown -h now" SYS_RESTART_CMD = "sudo shutdown -r now" # AUTOSHUTDOWN_WAKEUP_CMD = sudo /PATH/TO/set_acpi.sh AUTOSHUTDOWN_WAKEUP_CMD = "sudo /usr/bin/nvram-wakeup" AUTOSHUTDOWN_REMOUNT_BOOT_CMD = "sudo /bin/mount" AUTOSHUTDOWN_GRUB_CMD = "sudo /sbin/grub-set-default 0" # AUTOSHUTDOWN_LILO_CMD = "sudo /sbin/lilo" Cheers, Richard. ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users