Well, actually I am asking about Exec binding, Things files does not have anything to do with this questions or Items list because, the issue is that the Exec command does not execute. However, Items works fine, and Things files is empty.
The issue is with some permissions or sudoers, I do not know, I am not very good in Linux. Always I am confused with permisions.
Dig is installed, and works fine on the terminal.
What you mean with “you have to list each binary individually” I have to type one line? I thought I could put everything separated by ,
For me, influsd only works with sudo, not without
[21:35:31] openhabian@openhabianpi:~$ influxd backup -portable /mnt/
2018/12/07 21:35:44 backing up metastore to /mnt/meta.00
backup: open temp file: open /mnt/meta.00.pending: permission denied
[21:35:49] openhabian@openhabianpi:~$ sudo influxd backup -portable /mnt/
2018/12/07 21:35:57 backing up metastore to /mnt/meta.00
2018/12/07 21:35:57 No database, retention policy or shard ID given. Full meta store backed up.
2018/12/07 21:35:57 Backing up all databases in portable format
2018/12/07 21:35:57 backing up db=
2018/12/07 21:35:57 backing up db=_internal rp=monitor shard=1 to /mnt/_internal.monitor.00001.00 since 0001-01-01T00:00:00Z
2018/12/07 21:35:57 backing up db=_internal rp=monitor shard=3 to /mnt/_internal.monitor.00003.00 since 0001-01-01T00:00:00Z
2018/12/07 21:35:58 backing up db=_internal rp=monitor shard=4 to /mnt/_internal.monitor.00004.00 since 0001-01-01T00:00:00Z
2018/12/07 21:35:58 backing up db=openhab_db rp=autogen shard=2 to /mnt/openhab_db.autogen.00002.00 since 0001-01-01T00:00:00Z
2018/12/07 21:35:58 backup complete:
2018/12/07 21:35:58 /mnt/20181207T203557Z.meta
2018/12/07 21:35:58 /mnt/20181207T203557Z.s1.tar.gz
2018/12/07 21:35:58 /mnt/20181207T203557Z.s3.tar.gz
2018/12/07 21:35:58 /mnt/20181207T203557Z.s4.tar.gz
2018/12/07 21:35:58 /mnt/20181207T203557Z.s2.tar.gz
2018/12/07 21:35:58 /mnt/20181207T203557Z.manifest
The path to the influxdb command is not in the list and you have directories in the list. You can’t grant sudo permission to all the files in /var/lib. You have to list each file in /var/lib that you want to grant sudo permissions to individually.
In terminal, this is working for me, bt though openhab not
dig +short firstname.lastname@example.org
sudo influxd backup -portable /mnt/
I have changed sudoers like this, but nothing change:
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
openhab ALL=(ALL) NOPASSWD: /bin/ip, /bin/bash, /usr/bin/ssh, /var/lib/influxdb, /bin