The three files
Iron Gate's server guide names three text files, all located in the default save path (or the folder you set with -savedir):
adminlist.txt: who has admin privileges.bannedlist.txt: who is banned.permittedlist.txt: who is allowed in. This is Valheim's whitelist.
The default save path is %USERPROFILE%/AppData/LocalLow/IronGate/Valheim on Windows and ~/.config/unity3d/IronGate/Valheim on Linux. On a container set-up, they sit in the directory you mount.
The catch with the permitted list
The official guide has one sentence worth reading twice: adding a person to the permitted list will ban everyone else from the server. That is the whole point of a whitelist, but it surprises people in two ways:
- The moment the file has one entry, everyone not in it is refused, and that includes you if you did not add yourself.
- Your friends do not need to know any of this; they just see a refusal. If someone cannot join and the password is right, check the permitted list first.
So write the whole group into the file in one go: you first, then each friend.
Editing the files
- Stop the server, so it is not holding the files.
- Open the file in a plain text editor.
- Add one player ID per line. Use the ID format that Valheim shows you for your players; the official guide says to edit the text files but does not spell out the ID format, so do not guess one from a forum post. Check what the game and your platform use for the players in your group.
- Save the file with the same name and no extra extension (
permittedlist.txt, notpermittedlist.txt.txt). - Start the server and have one friend test it, then a second.
Admins
An admin is someone you trust with the server's controls. Put as few people in adminlist.txt as your group actually needs. A group of friends often has one or two. If you want to hand over a bit of responsibility, add the person now rather than sharing the server password around more widely.
Bans
bannedlist.txt works the other way round: anyone listed is kept out. With a permitted list in place you rarely need it, because everyone who is not on the permitted list is already refused. It is more useful on an open server.
Password plus list
The password (-password) and the permitted list do different jobs. The password stops strangers who find the server; the list stops anyone, even a friend who has passed on the password, who you have not approved. Using both is sensible for a private group. The options are described in the settings guide, including -public 0 to keep the server out of the public browser.
Keep the lists with your world
The permission files live in the same place as your worlds. If you move a server, back up or copy the whole save folder, not only the world, or you will find the lists missing and your server open again. Automatic backups are covered in the settings guide; copying the whole save folder by hand before big changes is a good habit.
Troubleshooting
- Nobody can join after you edited the list. Check the file really contains your whole group and that you did not save it with a second extension.
- The list seems to be ignored. Make sure you edited the file in the save path the server actually uses, which may be the
-savedirfolder. - You locked yourself out. Stop the server and add your own ID to the file.