<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich]]></title><description><![CDATA[<p dir="auto">Liebe Community,</p>
<p dir="auto">ich führe folgendes Script aus um meinen TV und den NUC zu steuern:</p>
<pre><code>on({
    id: "javascript.0.scriptEnabled.TV.TV_ein_aus",
    change: 'any'
}, function(obj) {
    var current_state = getState("javascript.0.scriptEnabled.TV.TV_ein_aus").val;
    //"An"-Status für Alexa generieren
    if (current_state === true) {
        //Starte den NUC mit WOL-Befehl
        exec('sudo etherwake -i eth0 XX:XX:XX:XX:XX:XX');
        //Yamaha-Receiver über Szene 2 einschalten (startet gleichzeitig den TV via HDMI-CEC)
        setTimeout(function() {
            setState('yamaha-community.0.scene', 1);
        }, 8000);
        setTimeout(function() {
            //Setze Receiver Lautstärke auf -40 &amp; Surround Modus auf Standard
            setState('yamaha-community.0.volume', -450);
            setState ('yamaha-community.0.surround', "Standard");
        }, 17000);
        log("Geräte sind gestartet mit Status, " + current_state, "info");
    } else {
        //NUC über Kodi Adapter herunterfahren
        setState('kodi.0.system.Shutdown', true);
        log("Geräte sind heruntergefahren mit Status, " + current_state, "info");
    }
});
</code></pre>
<p dir="auto">Nachdem ich nodejs und npm aktualisiert habe, habe ich auch ein "curl -sL <a href="https://iobroker.net/fix.sh" rel="nofollow ugc">https://iobroker.net/fix.sh</a> | bash -" ausgeführt.<br />
Dies scheint mir die Berechtigungen so eingeschränkt zu haben, dass ich jetzt mit dem iobroker Benutzer keine ausreichenden Berechtigungen mehr habe den Etherwake auszuführen.</p>
<pre><code>        //Starte den NUC mit WOL-Befehl
        exec('sudo etherwake -i eth0 XX:XX:XX:XX:XX:XX');
</code></pre>
<p dir="auto">In der Java Script Instanz ist der Haken bei "Erlaube das Kommando exec" gesetzt.<br />
Wo muss ich was berechtigen, dass es wieder funktioniert?</p>
<p dir="auto">Vielen Dank &amp; Gruß</p>
<p dir="auto">Modjo</p>
]]></description><link>https://forum.iobroker.net/topic/36434/gelöst-javascript-exec-nach-fix-sh-nicht-mehr-möglich</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 21:14:40 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/36434.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Aug 2020 20:49:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 12:49:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a></p>
<p dir="auto">wakeonlan wird das selbe problem gehabt haben, wie etherwake - aber hauptsache du hast erstmal eine lösung</p>
<p dir="auto">ich nehme mal an, die iobroker_custom hatte die lese-rechte - dann fällt mir dazu auch nix mehr ein</p>
<pre><code>-rw-r--r--  1 root root  189 Sep  1 13:11 iobroker-own
</code></pre>
]]></description><link>https://forum.iobroker.net/post/482867</link><guid isPermaLink="true">https://forum.iobroker.net/post/482867</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 01 Sep 2020 12:49:51 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 12:42:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alcalzone" aria-label="Profile: AlCalzone">@<bdi>AlCalzone</bdi></a><br />
Das habe ich bereits mehrfach gemacht. Ich habe die "custom_iobroker" Datei auch neu erstellt, hat alles nichts gebracht.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a><br />
Danke für deine Unterstützung. Über wakeonlan hat es auch nicht funktioniert und die Logs blieben leer. Über den node-wol wollte ich es nicht lösen, da es per etherwake bisher immer super funktioniert habe</p>
<p dir="auto">Ich habe nun einfach die iobroker Datei selbst in /etc/sudoers.d erweitert, anstatt eine neue Datei zu erstellen:</p>
<pre><code>iobroker@RPI3:/etc/sudoers.d$ sudo cat iobroker
iobroker ALL=(ALL) ALL
iobroker ALL=(ALL) NOPASSWD: /sbin/shutdown
iobroker ALL=(ALL) NOPASSWD: /sbin/halt
iobroker ALL=(ALL) NOPASSWD: /sbin/poweroff
iobroker ALL=(ALL) NOPASSWD: /sbin/reboot
iobroker ALL=(ALL) NOPASSWD: /bin/systemctl start
iobroker ALL=(ALL) NOPASSWD: /bin/systemctl stop
iobroker ALL=(ALL) NOPASSWD: /bin/mount
iobroker ALL=(ALL) NOPASSWD: /bin/umount
iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemd-run
iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt-get
iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt
iobroker ALL=(ALL) NOPASSWD: /usr/bin/dpkg
iobroker ALL=(ALL) NOPASSWD: /usr/bin/make
iobroker ALL=(ALL) NOPASSWD: /bin/ping
iobroker ALL=(ALL) NOPASSWD: /sbin/setcap
iobroker ALL=(ALL) NOPASSWD: /usr/bin/vcgencmd
iobroker ALL=(ALL) NOPASSWD: /bin/cat
iobroker ALL=(ALL) NOPASSWD: /bin/df
iobroker ALL=(ALL) NOPASSWD: /sbin/ldconfig
iobroker ALL=(ALL) NOPASSWD: /usr/sbin/etherwake
ALL ALL=NOPASSWD: /bin/systemctl start iobroker
ALL ALL=NOPASSWD: /bin/systemctl stop iobroker
ALL ALL=NOPASSWD: /bin/systemctl restart iobroker
ALL ALL=(iobroker) NOPASSWD: /usr/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js *
</code></pre>
<p dir="auto">Nun funktioniert es endlich wieder. Ich muss aber dann wohl nach jedem fix Installer einmal die Datei neu anpassen.</p>
<p dir="auto">Ich danke <strong>allen</strong> für die Hilfe und die Unterstützung bei der Problemlösung!</p>
<p dir="auto">VG Modjo</p>
]]></description><link>https://forum.iobroker.net/post/482862</link><guid isPermaLink="true">https://forum.iobroker.net/post/482862</guid><dc:creator><![CDATA[Modjo]]></dc:creator><pubDate>Tue, 01 Sep 2020 12:42:18 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 12:25:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a> sagte in <a href="/post/482791">Javascript "exec" nach fix.sh nicht mehr möglich</a>:</p>
<blockquote>
<p dir="auto">der root user findet den am selben Pfad</p>
</blockquote>
<p dir="auto">Dann versteh ich es nicht ganz. Deine Datei sah gut aus. Ggf. einfach mal die Kiste komplett neu starten?</p>
]]></description><link>https://forum.iobroker.net/post/482849</link><guid isPermaLink="true">https://forum.iobroker.net/post/482849</guid><dc:creator><![CDATA[AlCalzone]]></dc:creator><pubDate>Tue, 01 Sep 2020 12:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 12:13:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a> was du auch anwenden könntest:</p>
<p dir="auto">in der javascript- instanz (setting):</p>
<p dir="auto"><img src="/assets/uploads/files/1598961453593-image-2.png" alt="Image 2.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">und dann im script:</p>
<pre><code>var wol = require('wake_on_lan');

wol.wake("00:1D:72:xxxxx");
</code></pre>
]]></description><link>https://forum.iobroker.net/post/482841</link><guid isPermaLink="true">https://forum.iobroker.net/post/482841</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 01 Sep 2020 12:13:33 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 11:27:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a></p>
<p dir="auto">ich habe es auch mit wakeonlan versucht - da funktioniert es auch</p>
<pre><code>    exec('sudo etherwake  -i eth0 1C:69:7A:xxxxxx -D', function (error, result, stderr) {
     console.log(result);
    });

    exec('wakeonlan  94:C6:91:xxxxx', function (error, result, stderr) {
    console.log(result);
    });

</code></pre>
<p dir="auto">die ausgabe:</p>
<p dir="auto"><img src="/assets/uploads/files/1598959469208-image-1.png" alt="Image 1.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">wie <a class="plugin-mentions-user plugin-mentions-a" href="/user/alcalzone" aria-label="Profile: AlCalzone">@<bdi>AlCalzone</bdi></a>  schon sagte:<br />
bei mir funktioniert aber auch :</p>
<pre><code>sudo -u iobroker -s /bin/bash
</code></pre>
<p dir="auto">was auch bei mir geht:  dieser befehl im script</p>
<pre><code>sudo -u root etherwake  -D -i eth0 1C:69:7A:xxxxxx
</code></pre>
]]></description><link>https://forum.iobroker.net/post/482819</link><guid isPermaLink="true">https://forum.iobroker.net/post/482819</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 01 Sep 2020 11:27:03 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 10:20:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alcalzone" aria-label="Profile: AlCalzone">@<bdi>AlCalzone</bdi></a></p>
<p dir="auto">Vielen Dank für den Tipp.<br />
der root user findet den am selben Pfad:</p>
<pre><code>sudo su
which etherwake
/usr/sbin/etherwake
</code></pre>
<p dir="auto">VG Modjo</p>
]]></description><link>https://forum.iobroker.net/post/482791</link><guid isPermaLink="true">https://forum.iobroker.net/post/482791</guid><dc:creator><![CDATA[Modjo]]></dc:creator><pubDate>Tue, 01 Sep 2020 10:20:54 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 10:03:03 GMT]]></title><description><![CDATA[<p dir="auto">Noch ne blöde idee: Wo findet <code>root</code> denn etherwake?</p>
<pre><code>sudo su
which etherwake
</code></pre>
]]></description><link>https://forum.iobroker.net/post/482773</link><guid isPermaLink="true">https://forum.iobroker.net/post/482773</guid><dc:creator><![CDATA[AlCalzone]]></dc:creator><pubDate>Tue, 01 Sep 2020 10:03:03 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 10:00:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a> Bevor du im Adapter testest, probiers auf der Konsole oben aus. Solange du als <code>iobroker</code> ein Passwort brauchst, wirds nicht im Adapter gehen.</p>
]]></description><link>https://forum.iobroker.net/post/482771</link><guid isPermaLink="true">https://forum.iobroker.net/post/482771</guid><dc:creator><![CDATA[AlCalzone]]></dc:creator><pubDate>Tue, 01 Sep 2020 10:00:57 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 09:20:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a></p>
<p dir="auto">Vielen Dank.<br />
Also wenn das in der Konsole des Javascripts auftauchen soll, dann kommt da nix:<br />
on({</p>
<pre><code>        id: "javascript.0.scriptEnabled.TV.TV_ein_aus",
    
        change: 'any'
    
    }, function(obj) {
    
        var current_state = getState("javascript.0.scriptEnabled.TV.TV_ein_aus").val;
    
        //"An"-Status für Alexa generieren
    
        if (current_state === true) {
    
            //Starte den NUC mit WOL-Befehl
    
            //exec('sudo etherwake -i eth0 XX:XX:XX:XX:XX:XX');
    
            exec('sudo etherwake -i eth0 XX:XX:XX:XX:XX:XX', function (error, result, stderr) {
    
        console.log(result);
    
    });
    
            //Yamaha-Receiver über Szene 2 einschalten (startet gleichzeitig den TV via HDMI-CEC)
    
            setTimeout(function() {
    
                setState('yamaha-community.0.scene', 1);
    
            }, 8000);
    
            setTimeout(function() {
    
                //Setze Receiver Lautstärke auf -40 &amp; Surround Modus auf Standard
    
                setState('yamaha-community.0.volume', -450);
    
                setState ('yamaha-community.0.surround', "Standard");
    
            }, 17000);
    
            log("Geräte sind gestartet mit Status, " + current_state, "info");
    
        } else {
    
            //NUC über Kodi Adapter herunterfahren
    
            setState('kodi.0.system.Shutdown', true);
    
            log("Geräte sind heruntergefahren mit Status, " + current_state, "info");
    
        }
    
    });
</code></pre>
<p dir="auto">11:17:03.282	info	javascript.0 (1417) script.js.TV.TV_ein_aus: Geräte sind gestartet mit Status, true<br />
11:17:03.311	info	javascript.0 (1417) Stop script script.js.TV.TV_ein_aus<br />
11:17:03.319	info	javascript.0 (1417) Start javascript script.js.TV.TV_ein_aus<br />
11:17:03.329	info	javascript.0 (1417) script.js.TV.TV_ein_aus: registered 1 subscription and 0 schedules<br />
11:17:03.333	info	javascript.0 (1417) script.js.TV.TV_ein_aus:<br />
11:17:03.335	info	javascript.0 (1417) script.js.TV.TV_ein_aus: Geräte sind heruntergefahren mit Status, false<br />
11:17:03.357	info	javascript.0 (1417) script.js.TV.TV_ein_aus: Geräte sind gestartet mit Status, true<br />
11:17:03.384	info	javascript.0 (1417) script.js.TV.TV_ein_aus:</p>
<p dir="auto">VG Modjo</p>
]]></description><link>https://forum.iobroker.net/post/482747</link><guid isPermaLink="true">https://forum.iobroker.net/post/482747</guid><dc:creator><![CDATA[Modjo]]></dc:creator><pubDate>Tue, 01 Sep 2020 09:20:27 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 08:46:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a></p>
<p dir="auto">probier doch mal:</p>
<pre><code>exec('sudo etherwake -i eth0 XX:XX:XX:XX:XX:XX', function (error, result, stderr) {
    console.log(result);
});
</code></pre>
<p dir="auto">ob da was im log steht</p>
]]></description><link>https://forum.iobroker.net/post/482730</link><guid isPermaLink="true">https://forum.iobroker.net/post/482730</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 01 Sep 2020 08:46:09 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 08:42:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: Homoran">@<bdi>Homoran</bdi></a></p>
<p dir="auto">Huch, stimmt. Geht aber leider immer noch nicht :-/</p>
]]></description><link>https://forum.iobroker.net/post/482728</link><guid isPermaLink="true">https://forum.iobroker.net/post/482728</guid><dc:creator><![CDATA[Modjo]]></dc:creator><pubDate>Tue, 01 Sep 2020 08:42:19 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 08:29:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a> sagte in <a href="/post/482722">Javascript "exec" nach fix.sh nicht mehr möglich</a>:</p>
<blockquote>
<p dir="auto">Sieht gleich aus</p>
</blockquote>
<p dir="auto">bis auf das s um das es ging</p>
]]></description><link>https://forum.iobroker.net/post/482723</link><guid isPermaLink="true">https://forum.iobroker.net/post/482723</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Tue, 01 Sep 2020 08:29:22 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 08:27:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: Thomas-Braun">@<bdi>Thomas-Braun</bdi></a> said in <a href="/post/482721">Javascript "exec" nach fix.sh nicht mehr möglich</a>:</p>
<blockquote>
<p dir="auto">sudo chmod u+s /usr/sbin/etherwake</p>
</blockquote>
<pre><code>sudo chmod u+s /usr/sbin/etherwake
ls -la /usr/sbin/etherwake
-rwsr-xr-x 1 root root 8188 Nov 13  2013 /usr/sbin/etherwake
</code></pre>
<p dir="auto">Sieht gleich aus :-)</p>
]]></description><link>https://forum.iobroker.net/post/482722</link><guid isPermaLink="true">https://forum.iobroker.net/post/482722</guid><dc:creator><![CDATA[Modjo]]></dc:creator><pubDate>Tue, 01 Sep 2020 08:27:50 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 08:23:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a><br />
Setz da mal das setuid bit:</p>
<pre><code>sudo chmod u+s /usr/sbin/etherwake
</code></pre>
<p dir="auto">Danach nochmal mit</p>
<pre><code>ls -la /usr/sbin/etherwake
</code></pre>
<p dir="auto">prüfen wie die Rechte stehen</p>
]]></description><link>https://forum.iobroker.net/post/482721</link><guid isPermaLink="true">https://forum.iobroker.net/post/482721</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Tue, 01 Sep 2020 08:23:57 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 08:18:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: Thomas-Braun">@<bdi>Thomas-Braun</bdi></a></p>
<p dir="auto">Okay ich gelobe Besserung :-)</p>
<p dir="auto">Hier das outcome:</p>
<pre><code>ls -la /usr/sbin/etherwake
-rwxr-xr-x 1 root root 8188 Nov 13  2013 /usr/sbin/etherwake
</code></pre>
<p dir="auto">VG Modjo</p>
]]></description><link>https://forum.iobroker.net/post/482719</link><guid isPermaLink="true">https://forum.iobroker.net/post/482719</guid><dc:creator><![CDATA[Modjo]]></dc:creator><pubDate>Tue, 01 Sep 2020 08:18:38 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 08:01:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a></p>
<pre><code>ls -la /usr/sbin/etherwake
</code></pre>
<p dir="auto">Und bitte Konsolentext auch als Text (in &lt;/&gt;  CodeTags) ins Forum, aus Screenshots kann man nicht kopieren. Und durchsuchbar sind die auch nicht.</p>
]]></description><link>https://forum.iobroker.net/post/482713</link><guid isPermaLink="true">https://forum.iobroker.net/post/482713</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Tue, 01 Sep 2020 08:01:02 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Tue, 01 Sep 2020 07:28:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alcalzone" aria-label="Profile: AlCalzone">@<bdi>AlCalzone</bdi></a><br />
<img src="/assets/uploads/files/1598945237298-f34ddb9e-dd26-4c41-8799-1cd1a1741525-image.png" alt="f34ddb9e-dd26-4c41-8799-1cd1a1741525-image.png" class=" img-fluid img-markdown" /><br />
Scheint wohl leider nicht zu greifen. Hast du eine Idee, woran das liegen kann? Vorher dem <a href="http://fix.sh" rel="nofollow ugc">fix.sh</a> hat das ja auch mit der custom_iobroker funktioniert.</p>
<p dir="auto">Viele Grüße<br />
Modjo</p>
]]></description><link>https://forum.iobroker.net/post/482704</link><guid isPermaLink="true">https://forum.iobroker.net/post/482704</guid><dc:creator><![CDATA[Modjo]]></dc:creator><pubDate>Tue, 01 Sep 2020 07:28:21 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Mon, 31 Aug 2020 16:27:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a> Hast du auch ioBroker neu gestartet?<br />
Ansonsten kannst du testen, ob das in der Konsole geht. Also</p>
<ol>
<li>als iobroker "einloggen"</li>
<li>prüfen, ob hier der Pfad der gleiche ist. Wenn nicht, besser den vollständigen Pfad im Skript nutzen</li>
<li>testen, ob die sudoers-Regel greift</li>
</ol>
<pre><code>sudo -u iobroker -s /bin/bash
which etherwake
sudo etherwake
</code></pre>
<p dir="auto">Wenn es so aussieht (Frage nach Passwort), greift sie nicht:<br />
<img src="/assets/uploads/files/1598891206161-c662bacf-db5a-47e1-a9e1-a342d05fc68a-grafik.png" alt="c662bacf-db5a-47e1-a9e1-a342d05fc68a-grafik.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/482436</link><guid isPermaLink="true">https://forum.iobroker.net/post/482436</guid><dc:creator><![CDATA[AlCalzone]]></dc:creator><pubDate>Mon, 31 Aug 2020 16:27:55 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Mon, 31 Aug 2020 15:39:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alcalzone" aria-label="Profile: AlCalzone">@<bdi>AlCalzone</bdi></a> Vielen Dank für deine Antwort:</p>
<p dir="auto">Das hatte ich bereits gemacht. Ich habe eine custom_iobroker datei unter /etc/sudoers.d angelegt und befüllt:</p>
<pre><code>which etherwake
/usr/sbin/etherwake
</code></pre>
<pre><code>cat custom_iobroker
iobroker ALL=(ALL) NOPASSWD: /usr/sbin/etherwake
</code></pre>
<p dir="auto">Leider ohne Erfolg. Gibt es noch weitere Ideen?<br />
über ssh mit root user: funktioniert<br />
über iobroker in javascript: funktioniert nicht.</p>
<p dir="auto">Gruß</p>
]]></description><link>https://forum.iobroker.net/post/482413</link><guid isPermaLink="true">https://forum.iobroker.net/post/482413</guid><dc:creator><![CDATA[Modjo]]></dc:creator><pubDate>Mon, 31 Aug 2020 15:39:11 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] Javascript &quot;exec&quot; nach fix.sh nicht mehr möglich on Mon, 31 Aug 2020 07:12:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/modjo" aria-label="Profile: Modjo">@<bdi>Modjo</bdi></a> sagte in <a href="/post/482044">Javascript "exec" nach fix.sh nicht mehr möglich</a>:</p>
<blockquote>
<p dir="auto">sudo etherwake</p>
</blockquote>
<p dir="auto">Das ist das Problem. Der Adapter läuft als der User <code>iobroker</code>, der aus Sicherheitsgründen nur bestimmte Befehle per <code>sudo</code> ausführen darf. Alles Weitere musst du explizit erlauben.<br />
Das ist hier im Forum schon mehrfach diskutiert worden, z.B. hier: <a href="https://forum.iobroker.net/topic/28877/gel%C3%B6st-exec-in-js-funktioniert-nicht-mehr">https://forum.iobroker.net/topic/28877/gelöst-exec-in-js-funktioniert-nicht-mehr</a></p>
]]></description><link>https://forum.iobroker.net/post/482147</link><guid isPermaLink="true">https://forum.iobroker.net/post/482147</guid><dc:creator><![CDATA[AlCalzone]]></dc:creator><pubDate>Mon, 31 Aug 2020 07:12:18 GMT</pubDate></item></channel></rss>