💾 Archived View for paritybit.ca › sysadmin › jaderune › admin.gmi captured on 2022-07-16 at 13:42:19. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-03-01)
-=-=-=-=-=-=-
A collection of documentation and scripts used to administer JadeRune.net.
This is a custom script created to allow admins who don't otherwise have access to the infrastructure to register users with ejabberd
A simple script was created to do this:
#!/bin/sh if [ -z "$1" ]; then echo "You must provide a username" exit 1 else username="$1" fi iocage exec xmpp su -l ejabberd -c "ejabberdctl register $username jaderune.net 'temppass'" exit 0
This script takes a name as an argument and registers that user with the given temporary password.
It can be run as the admin user using the following command:
doas register_xmpp_user <name>
Doas has been set up as follows:
permit admin as root cmd register_xmpp_user