ejabberd - Comments for "How to run ejabberdctl from www-root?" https://www.ejabberd.im/node/3917 en The ejabberd installation https://www.ejabberd.im/node/3917#comment-55417 <p>The ejabberd installation when using the source package assumes that only root can run ejabberdctl.</p> <p>However, if you add the option</p> <pre>./configure --enable-user=somesystemuser</pre><p>and then install it, then both root and somesystemuser will be able to run ejabberdctl.</p> <p>I checked if it was possible to get any other system user to run ejabberdctl, by adding him to the somesystemuser group, but it didn't work:</p> <pre> $ /sbin/ejabberdctl This command can only be run by root or the user somesystemuser </pre> Wed, 17 Mar 2010 12:04:37 +0000 mfoss comment 55417 at https://www.ejabberd.im how to allow non-root users to run ejabberdctl? https://www.ejabberd.im/node/3917#comment-55415 <p>So now I added at the beginning,</p> <div class="codeblock"><code>putenv(&quot;HOME=/tmp&quot;);</code></div> <p>and got:</p> <div class="codeblock"><code>array (<br />&nbsp; &#039;stdout&#039; =&gt; &#039;RPC failed on the node ejabberd@vserver147: nodedown<br />&#039;,<br />&nbsp; &#039;stderr&#039; =&gt; &#039;&#039;,<br />&nbsp; &#039;return&#039; =&gt; 3,<br />)</code></div> <p>At least it's now at the same place as other users. So now the question is how to allow non-root users to run ejabberdctl...</p> Tue, 16 Mar 2010 14:18:39 +0000 aaronwinborn comment 55415 at https://www.ejabberd.im and yes, i've also tried https://www.ejabberd.im/node/3917#comment-55412 <p>and yes, i've also tried running the commands as root -- they execute properly.</p> Tue, 16 Mar 2010 13:08:06 +0000 aaronwinborn comment 55412 at https://www.ejabberd.im