Jump to content

How to create a admin user for dashboard


faceofdeath

Recommended Posts

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? 

spacer.png

 

 

Edited by faceofdeath (see edit history)
Link to comment
Share on other sites

9 minutes ago, faceofdeath said:

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? 

spacer.png

 

 

 

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.

Link to comment
Share on other sites

Just now, SylenThunder said:

 

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.

Link to comment
Share on other sites

  • faceofdeath changed the title to How to create a admin user for dashboard

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...