How to create a admin user for dashboard

I'm self-hosting a dedicated server of Alpha 21.0. 
And I'm new at hosting 7days, and I'm not sure of where and how to set this up. 

I can't use the recommend command because I'm hosting it in a Linux Container, so, I don't have access to ingame admin privileges.

Can someone help me, please? 

jkEDQWR_d.webp


 
Last edited by a moderator:
I'm self-hosting a dedicated server of Alpha 21.0. 
And I'm new at hosting 7days, and I'm not sure of where and how to set this up. 

Can someone help me, please? 



While you are in-game logged into the server, use the console command createwebuser

It will prompt you to open the link is a browser, and there you will create your logein.

Literally the first line in your image tells you what to do.

 
While you are in-game logged into the server, use the console command createwebuser

It will prompt you to open the link is a browser, and there you will create your logein.

Literally the first line in your image tells you what to do.
I was about to edit the topic, to add this information:

 

I can't use the recommend command because I'm hosting it in a Linux Container, so, I don't have access to ingame admin privileges.

Where the file with the user contents are stored?

I can edit them directly, but I don't know the path, I found the path "/.local/share/7DaysToDie/Saves" and there is a "serveradmin.xml" file, I tried to add by hand editing, this: 

<apitokens>
<!-- <token name="adminuser1" secret="supersecrettoken" permission_level="0" /> -->
</apitokens>
<webmodules />
<webusers />



But it did not work.

 
Step 1. Make your user admin.  Easiest way is to log into the server, connect to telnet, and then type "admin add YourName 0"

Step 2. Follow previous steps.

The path for the files will depend on how you configured your server, but you should be able to find it referenced in the logs.

 
Back
Top