I had to reinstall Vortexbox 2.4 - Fedora 23 from scratch and of course that included SBS. Previously I had everything running smoothly. On the same machine, the same software and only with a different SSD. However, now when installing SrvrPowerCtrl I am unable to make it work.
I installed pm-utils and then manually installed the plugin. All went smoothly. I then followed instructions as per
When I tested the script with
I get the following error
I installed the plugin several times but to always get the same error.
The lines with syntax errors referred above read as follows
I am a Linux newbie and would appreciate if someone could tell me what may be wrong or point me in the right direction. Thanks
I installed pm-utils and then manually installed the plugin. All went smoothly. I then followed instructions as per
Code:
http://your_server_ip:9000/Default/plugins/SrvrPowerCtrl/html/helpredir.html"]http://server_ip:9000/Default/plugins/SrvrPowerCtrl/html/helpredir.html
Code:
sudo -u squeezeboxserver /usr/local/sbin/spc-test.sh
Code:
sudo -u squeezeboxserver /usr/local/sbin/spc-test.sh
>>> /etc/sudoers: syntax error near line 98 <<<
>>> /etc/sudoers: syntax error near line 99 <<<
>>> /etc/sudoers: syntax error near line 100 <<<
>>> /etc/sudoers: syntax error near line 101 <<<
>>> /etc/sudoers: syntax error near line 102 <<<
>>> /etc/sudoers: syntax error near line 103 <<<
>>> /etc/sudoers: syntax error near line 104 <<<
>>> /etc/sudoers: syntax error near line 105 <<<
>>> /etc/sudoers: syntax error near line 106 <<<
>>> /etc/sudoers: syntax error near line 107 <<<
>>> /etc/sudoers: syntax error near line 108 <<<
>>> /etc/sudoers: syntax error near line 109 <<<
>>> /etc/sudoers: syntax error near line 110 <<<
>>> /etc/sudoers: syntax error near line 111 <<<
>>> /etc/sudoers: syntax error near line 112 <<<
>>> /etc/sudoers: syntax error near line 113 <<<
sudo: parse error in /etc/sudoers near line 98
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
The lines with syntax errors referred above read as follows
Code:
ALL = NOPASSWD: /usr/bin/systemctl poweroff
ALL = NOPASSWD: /usr/bin/systemctl suspend
ALL = NOPASSWD: /usr/bin/systemctl hibernate
ALL = NOPASSWD: /usr/bin/systemctl hibrid-sleep
ALL = NOPASSWD: /usr/bin/systemctl reboot
ALL = NOPASSWD: /usr/bin/crontab -l
ALL = NOPASSWD: /usr/local/sbin/spc-clearblock.sh*
ALL = NOPASSWD: /usr/local/sbin/spc-functions.sh*
ALL = NOPASSWD: /usr/local/sbin/spc-health.sh*
ALL = NOPASSWD: /usr/local/sbin/spc-minidlna.sh*
ALL = NOPASSWD: /usr/local/sbin/spc-restart.sh*