# How to Set a Password on Your Soulmask Server (/docs/soulmask/server-password)



import { Step, Steps } from 'fumadocs-ui/components/steps';

Soulmask has two separate passwords — a **server password** (for players to join) and an **admin password** (for GM commands).

Set a Server Password [#set-a-server-password]

<Steps>
  <Step>
    Open Startup [#open-startup]

    In the [XGamingServer Panel](https://panel.xgamingserver.com), click **Startup** in the sidebar.
  </Step>

  <Step>
    Set the password [#set-the-password]

    Find the **Server Password** variable (maps to `-PSW`) and enter your password.

    To make the server public, leave it empty.

    {/* Screenshot needed: Startup tab showing PSW variable */}
  </Step>

  <Step>
    Restart [#restart]

    Restart from **Console**.
  </Step>
</Steps>

Set an Admin Password [#set-an-admin-password]

The admin password is separate from the server password. Find the **Admin Password** variable (maps to `-adminpsw`) in **Startup** and set it.

Players use this password in-game with `gm key <password>` to gain GM access. See [Admin Setup](/docs/soulmask/admin-setup) for details.

Related Guides [#related-guides]

* [Server Configuration](/docs/soulmask/server-config)
* [Admin Setup](/docs/soulmask/admin-setup)
* [Connect to Your Server](/docs/soulmask/join-server)
