If someone joins with the username of the admin (set by name = admin
in minetest.conf), they can gain privileges undesired by server owner. Currently the server displays warning messages until someone is logged in as this user. As things stand now, there is _almost always_ a time after initial server start in which server privileges can be hijacked.
The user should be created automatically using either:
name =
and password =
makes sense.You can set default_password
for the first time that you start your server.
FYI: name
defaults to empty value. As soon you host a server it will be assigned to your name as well. Your issue here seems to be that you'd like to use the same minetest.conf for the client and your dedicated server. Using different files would make more sense in this case.
https://github.com/minetest/minetest/blob/3ad9a8f3a978b41a88ebf8a88690ad658cd132c7/src/defaultsettings.cpp#L32
In fact you are warned as such when issuing --terminal
On Fri, Aug 2, 2019, 3:08 PM SmallJoker notifications@github.com wrote:
FYI: name defaults to empty value. As soon you host a server it will be
assigned to your name as well. Your issue here seems to be that you'd like
to use the same minetest.conf for the client and your dedicated server.
Using different files would make more sense in this case.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/minetest/minetest/issues/8741?email_source=notifications&email_token=AFS4UYRLATORNPPBA4CMGT3QCSA3LA5CNFSM4IJAHMRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3OTD6A#issuecomment-517812728,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFS4UYQS7BILISJJ3GELWKLQCSA3LANCNFSM4IJAHMRA
.
Most helpful comment
FYI:
name
defaults to empty value. As soon you host a server it will be assigned to your name as well. Your issue here seems to be that you'd like to use the same minetest.conf for the client and your dedicated server. Using different files would make more sense in this case.https://github.com/minetest/minetest/blob/3ad9a8f3a978b41a88ebf8a88690ad658cd132c7/src/defaultsettings.cpp#L32