sudo ejabberdctl doesn't work

Hi there,
If I try to use ejabberdctl as sudo to make my first user I get the following code back:

sudo ejabberdctl register name domain.nl passwd
/usr/sbin/ejabberdctl: line 27: /bin/mkdir: Access Denied
/usr/sbin/ejabberdctl: line 28: /bin/chown: Access Denied
/usr/sbin/ejabberdctl: line 385: /proc/sys/kernel/random/uuid: Access Denied
/usr/sbin/ejabberdctl: line 366: 15336 Segmentationfault $EXEC_CMD "$CMD"

I am using Ubuntu 16.10 server on an Intel NUC.
Using Ejabberd version 16.01-2 from ubuntu repositor.

Hoping on some help,

Pit

Syndicate content