Project Zomboid

Project Zomboid

Philippus Apr 28, 2023 @ 1:14pm
How to be admin of my own server?
I created a dedicated server for my friends to play.

However I can't put myself as admin. The setaccesslevel command doesn't work and I don't know how to login with admin.
< >
Showing 1-12 of 12 comments
Philippus Apr 28, 2023 @ 1:30pm 
To log in as admin I have to put admin and the password when connecting to the server, but then my character's name stays as admin.

Isn't there a way to log in as admin but keep my character name?
Beard Apr 28, 2023 @ 2:45pm 
Are you sure you are using the command correctly? It would be
/setaccesslevel "Username" admin

The username is case sensitive, and the quotation marks need to be used.
Philippus Apr 28, 2023 @ 2:59pm 
Yes, I get the message

Player "Philippus" has not right to execute "setaccesslevel "Philippus" admin" command
Sora Apr 28, 2023 @ 3:03pm 
You must create an account by logging into it first then you have two choices
1) alter the database from the database viewer from the default admin account and set your account level to admin.
2) type 'setaccesslevel "Philippus" admin' from server console. (Assuming this is the "username" field account that needs to be admin)
Beard Apr 29, 2023 @ 1:33am 
You first need to log into the admin account and run the command from there. Since based on the error you got, you first logged in your non admin character and are trying to give yourself permissions?

You can also use the server console with the same command.
Philippus Apr 30, 2023 @ 2:50am 
Got it, I thought I could do everything with the Philippus playable user, just by logging in with the password I set for the administrator.

Okay so I log in with the admin account and then I grant admin access to my own Philippus account.

It works for sure, I've tested it. I started messing with multiplayer a little while ago.
Thank you, people!

How do I change the admin username on my private server?
Last edited by Philippus; Apr 30, 2023 @ 3:07am
Beard Apr 30, 2023 @ 3:37am 
What do you mean exactly by "private server" and "admin username"?
The "admin" account always has to exist. And if by "private' you mean the server hosted through the Host menu, then the one who hosts is always an admin.
Philippus Apr 30, 2023 @ 3:46am 
private server - I mean the server I'm hosting on my computer to play with my friends.

admin username - I mean the name of the admin account, because for me to log into it, I have to use admin plus the admin password. I would like to change this "admin" to "Philippus".

I checked in videos that there is a customization panel for servers hosted by companies, such as GPORTAL, where you have the option to change this admin username and password, thus changing the way to log in as an administrator on these servers.

As the server is hosted on my own computer, is there any way I can change this within the game or by editing a file in the server installation?

like in this video at 0:34 minutes

https://youtu.be/SG1clZzGf54
Last edited by Philippus; Apr 30, 2023 @ 3:53am
Beard Apr 30, 2023 @ 3:53am 
You have already given admin permissions to "Philippus" have you not? Now when you log in with that username then you should have admin powers on that account as well.
Philippus Apr 30, 2023 @ 3:56am 
Originally posted by Beard:
You have already given admin permissions to "Philippus" have you not? Now when you log in with that username then you should have admin powers on that account as well.

Yes true. Is this access permanent even after shutting down or restarting the server?
Beard Apr 30, 2023 @ 4:43am 
If it is a dedicated server, then yes it is.
Philippus Apr 30, 2023 @ 5:17am 
Thank you for your help
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Apr 28, 2023 @ 1:14pm
Posts: 12