Change Valheim server password

I set an absurdly long overkill password on my valheim server. Does anyone know how I can go about changing it. I am pretty comfy with CLI.

2 Replies

I can think of a couple of passwords you're encountering, and it wasn't clear which one you'd like to change. Maybe this is because I'm not familiar with Valheim myself. Anyway, here are some links for changing multiple different passwords:

To change your Valheim server password:

Navigate here:

/home/$USER/lgsm/config-lgsm/vhserver/vhserver.cfg

Open vhserver.cfg in your favorite text editor.

This is the line to update with your new password:

serverpassword="your_old_password"

Save the updated file, change back to the main directory, and restart your Valheim server with these commands:

cd
./vhserver restart

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct