ejabberd - Comments for "Running ejabberd as a user" https://www.ejabberd.im/node/274 en Sorted (sort of) https://www.ejabberd.im/node/274#comment-537 <p>Hi Tomosa,<br /> I've got it more or less sorted out now, although it's still a weird one. In the end what seemed to be the problem was epmd running as a daemon (/usr/local/lib/erland/erts-5.4.6/bin/epmd -daemon). This process was owned by root and wasn't getting shut down when I stopped ejabberd. After I killed that, logged in as the ejabberd user and ran the command, it ran successfully.</p> <p>Weirdly, it still won't let me run my script with su ejabberd -c "...", but if I actually login as the user and run the same "...", it works fine!</p> <p>Still, I'm happy with what I've got, and I've got the MSN transport installed and working now too, so as long as I remember to kill epmd when I stop ejabberd and su ejabberd when I want to restart it, I'll be fine :-). Thanks very much for your help, though).</p> <p>Cheers,<br /> Raj.</p> Fri, 10 Jun 2005 09:25:26 +0000 raj_bhaskar@jabber.org.uk comment 537 at https://www.ejabberd.im Re: Running ejabberd as a user Try try to follow this https://www.ejabberd.im/node/274#comment-533 <p>Hi,<br /> Try try to follow this tutorial: <a href="http://www.ejabberd.im/tuto-install-ejabberd" title="http://www.ejabberd.im/tuto-install-ejabberd">http://www.ejabberd.im/tuto-install-ejabberd</a><br /> to create the certificates. Then change the location of ssl.pem in your config to the proper one and you will be able to check if this solves the problem.</p> Thu, 09 Jun 2005 21:14:51 +0000 Tomaso comment 533 at https://www.ejabberd.im Hi Tomaso,I tried doing https://www.ejabberd.im/node/274#comment-531 <p>Hi Tomaso,<br /> I tried doing that without any luck :(. I also changed the permissions of the ejabberd.cfg directory and the log file with the same problem. I ran my script without the -detached option and got this error:</p> <p>application_controller: syntax error before: '/': /etc/ejabberd/ejabberd.cfg</p> <p>I don't understand this since it works fine when I run as root.</p> <p>The only uncommented lines with a '/' in them in my ejabberd.cfg file are in the listen section:</p> <pre> {5222, ejabberd_c2s, [{access, c2s}, shaper, c2s_shaper}, starttls, {certfile, "./ssl.pem"}]}, {5223, ejabberd_c2s, [access, c2s}, tls, {certfile, "./ssl.pem"}]} </pre><p> I can't find an ssl.pem file anywhere.</p> Thu, 09 Jun 2005 14:44:32 +0000 raj_bhaskar@jabber.org.uk comment 531 at https://www.ejabberd.im Re: Running ejabberd as a user https://www.ejabberd.im/node/274#comment-530 <p>Hi Raj,<br /> You schould check the owner of your Mnesia directory files. If they got created using ejabberd running as root they are owned by root, and user ejabberd that runs server now, cannot access them. chown the files to ejabberd and that schould make it.</p> <p>Regards,<br /> Tomaso.</p> Thu, 09 Jun 2005 13:23:13 +0000 Tomaso comment 530 at https://www.ejabberd.im