Page 1 of 1

Setting up Admins/Mods on your own server

PostPosted: Sun Sep 21, 2014 05:20
by digitalmouse
Apologies if this has been addressed elsewhere - I didn't find an answer based on searches like "setting up privs", "granting privileges", "setting up mods", etc.

Got lastest Minetest server running on a Raspberry Pi. Connecting via a client on a MacBook Pro works great, and no trouble logging in with a user and password, thereby creating that user on that sandbox. *BUT* I only have shout and interact privileges.

Has there been a post, or wiki guide, to describe how to set yourself up as the server admin/mod/god? I'm guessing I could mod the minetest.config file, or maybe the user's file?

Thanks in advance for any hints, tips, or re-direction!

Re: Setting up Admins/Mods on your own server

PostPosted: Sun Sep 21, 2014 07:12
by kaeza
First thing you should do, is put these settings in `minetest.conf`:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
# The name of the `superuser`. This user gets (almost) all privileges.
name = digitalmouse
# Default privileges for regular players. Add `interact` if you want the
# users to build without having to ask for permission. Other useful privs include
# `fast`, and `noclip` (especially for creative servers).
default_privs = shout

Next, delete the `auth.txt` file from your world directory. Then join the server locally and the game will grant you the privileges required (in particular `privs` privilege).

From there, just join the server, and use the following command:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/grant digitalmouse all

This will give you all the currently registered privileges.

An alternative is to edit `auth.txt` directly (with the server not running) and just append the required privs at the end (the format is easy to understand, it's just `username:pwhash:priv1,priv2,...`).

You can then let the people you want as "moderators" join in, and give them appropriate privileges:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/grant <player> <priv>

Most of the time, your moderators will only need `basic_privs` (allow to grant/revoke `interact` and `shout`), and possibly `ban` and `kick` (obvious). Other privileges may also be useful depending on the mods installed.

Re: Setting up Admins/Mods on your own server

PostPosted: Sun Sep 21, 2014 08:38
by digitalmouse
Thanks, kaeza! Joining the server locally wasn't an option for me on the Pi - graphics just way too intense, or I was using the wrong display driver in the config file - either way local client would not start up.

However, editing the auth.txt file by adding privs to my account did the trick. I was then able to log in remotely and do a /grant digitalmouse all.

Thanks again!