Setting up Admins/Mods on your own server

User avatar
digitalmouse
Member
 
Posts: 25
Joined: Sat Sep 20, 2014 18:26
In-game: digitalmouse

Setting up Admins/Mods on your own server

by digitalmouse » Sun Sep 21, 2014 05:20

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!
Minetest experimental server running on 900Mhz Raspberry Pi: pi.god.jp:30000
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Setting up Admins/Mods on your own server

by kaeza » Sun Sep 21, 2014 07:12

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.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
digitalmouse
Member
 
Posts: 25
Joined: Sat Sep 20, 2014 18:26
In-game: digitalmouse

Re: Setting up Admins/Mods on your own server

by digitalmouse » Sun Sep 21, 2014 08:38

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!
Minetest experimental server running on 900Mhz Raspberry Pi: pi.god.jp:30000
 


Return to Minetest Servers

Who is online

Users browsing this forum: No registered users and 18 guests

cron