Privileges/it

From Luanti Wiki
< Privileges
Revision as of 16:47, 21 October 2019 by Hamlet (talk | contribs)
Jump to navigation Jump to search
Languages Lingua: English • Deutsch • français • italiano • 日本語 • 中文(简体)‎

Ogni giocatore ha un gruppo di privilegi, che variano da server a server. Detto in modo grossolano, i privilegi di una persona stabiliscono cosa uno può fare o non fare. Ciascun privilegio ha un nome (il significato è descritto sotto). I privilegi possono essere concessi e revocati agli altri giocatori da qualunque giocatore che ha il privilegio chiamato "privs". Su di un server multi-giocatore con una configurazione predefinita, i nuovi giocatori iniziano con i privilegio chiamati "interact" e "shout". Per vedere i propri privilegi, uno può lanciare il comando server "privs".

Built-in privileges

As of Minetest 5.0.0, Minetest comes with the following privileges:

  • gameplay-related:
    • interactbuild, mine or use blocks
    • give—can use the /give and /giveme commands
    • teleport—can use the /teleport command to teleport oneself to certain coordinates or to another player
    • bring—in combination with teleport, can use the /teleport command to teleport any player to certain coordinates or to yet another player
    • fast—allows the player to activate fast mode
    • fly—allows the player to activate fly mode
    • noclip—allows the player to activate “noclip” mode, which allows them to fly through walls
  • chat-related:
    • shout—can chat with other people
  • world–manipulation-related:
  • moderation-related:
    • privs—can set any privileges of players using /grant and /revoke (→Server commands#Privilege manipulation)
    • basic_privs—can set “interact” and “shout” privileges using /grant and /revoke
    • kick—can kick players with /kick
    • ban—can ban/unban IPs and names using /ban and /unban
    • rollback—can use the rollback functionality
    • protection_bypass—can bypass protection of blocks (e.g. can open locked chests or steel doors of everyone)
  • administration-related:
    • server—can do server maintenance stuff such as /shutdown, /clearobjects, /set, …
    • debug—can access advanced debug features and informations, such as the wirewrame in the debug screens (F5)

Irrevokable privileges

A player’s privileges may be irrevokable in certain situations. It is not possible to revoke these privileges with /revoke then.

In multiplayer servers, the player whose name equals the minetest.conf setting “name” automatically has all privileges and all of these are irrevokable. This is also the case for players who started a server (not a dedicated server). In singleplayer, you start with interact, shout, privs and basic_privs. These privileges are irrevokable.

Privileges from mods and games

Minetest Game

  • home—can use /home and /sethome.

Mods

Mods may make additional privileges available on the server. Issue the server command /help privs to receive a full list (and short descriptions) of all possible privileges on the server.

Server configuration

Using the server’s configuration files, a lot of privilege-related stuff can be manipulated.

There is an option in the configuration file for setting the default privileges for new players. default_privs = interact, shout

  • The player having the name in the “name” field of the configuration has all the privileges.

Privileges are stored in the auth.txt file. The format of every line in that file is name:hashed_password:privs A real example: celeron55:CcCUjNUDVJxmXmTHj+7WKHvA9Ds:interact,shout

The auth.txt file is written periodically and at shutdown, so you should edit it only when the server is not running.

See also