Celeb Glow
updates | March 19, 2026

ejabberdctl not found in bash Ubuntu(installing ejabberd)

Here is the site I tried to use as a manual:

How To Install eJabberd XMPP Server on Ubuntu | DigitalOcean

I was trying to install ejabberd with applying the tutorials in many site to my VM which is ubuntu but I am stuck in the beginning. After I wrote

sudo apt-get update
sudo apt-get -y install ejabberd

it installs ejabberd. But when I try to write the following

ejabberdctl register admin localhost mypassword

it says ejabberdctl not found. I also tried to restart it with but it is still same.

sudo service ejabberd restart

1 Answer

ejabberdctl is owned by root with 550 permissions installed in /usr/sbin meaning that non-root users can not execute the binary. Try:

sudo ejabberdctl register admin localhost mypassword

sudo elevates your privileges to root in that terminal (after entering a password) thus giving you access to the binary.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy