- Log in to the server,
- screen -d -r mc and find the xuid of the person whose permissions you want to change. The xuid will be recorded in the following format when a person connects or disconnects
- Press Ctrl + a and then press d to exit the screen
- nano permissions.json
Write in this format. When adding a new rule, after the last curly brace, first write a comma, then add a pair of curly braces, and write "permission":"xx","xuid":"xxxxxxx" inside the newly added curly braces.
The members corresponding to permission are member, visitor corresponds to guest, and op corresponds to operator.
You can omit spaces and line breaks. But for clarity...- Press Ctrl+X, then press Y, and press Enter to exit nano
- screen -d -r mc
- permission reload
- Press Ctrl + a and then press d to exit the screen
- Safely exit ssh