After installing the exec-Binding, Raspberry-remote and editing the sudoers file like:
# User privilege specification
root ALL=(ALL:ALL) ALL
openhab ALL=NOPASSWD: /opt/raspberry-remote/send*
The error:
>>> /etc/sudoers: syntax error near line 21 <<<
sudo: parse error in /etc/sudoers near line 21
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
appears.
Now I can´t do an sudo- command anymore.
I tried copying the file out via SSH but I have no permissions.
Also
pkexec visudo
is not working, because I have no password for root.
I´m a totally noob an only wanted to make my actors running.
You will have to get the SD card out and edit the sudoers file in an other computer. Restore the file to what it was.
Every time you do something like this ALWAYS make a copy your original file under another name eg. myfile.bak. This way you can easily restore to when it was working and then you can try again!
You need to mount the SD card on some other machine where sudo is not broken and edit the sudoers from there. You will still need to be root (i.e. sudo) even on that other machine where you mount the SD card to to access the file.
And in the future, ALWAYS edit sudoers using visudo. If there is something wrong with what you changed, it will reject the change instead of breaking sudo on your machine.
If the SD card is mounted to /mnt/sdcard then the command would be