adding a new user to a shared group -- newbie kindly help

Hi,

When I am adding a new user to the server, is there a way to add the user to a shared group at the same time...Can it be done from command line.

If not do I need to write a script to achieve the same.

Thanks,

Veena

You can use

You can use ejabberdctl-extra. Then you can write a shell script like this (not tested, so there may be bugs in it):

#!/bin/sh
./ejabberdctl change@this register $1 $2 $3
./ejabberdctl change@this add-usertogroup $1 $2 specify_a_group virtual_host_of_the_group

To create user@server and add it in the group, you can do:

./script user server password

--
sander

Syndicate content