An Open WebUI instance with open sign-ups is an open door: anyone who finds the URL can create an account and use your hardware. The fix takes a minute, and it belongs right after the admin account is created — not later, not when you notice a stranger’s account.
Related guide: How to Use Open WebUI with Ollama for Local Chat
Close sign-ups, or make them pending
There are two ways to control this, and they work together. The first is the environment variable ENABLE_SIGNUP: set it to false in your Compose file or environment and restart, and the sign-up form stops creating accounts. The guides say to flip it off after everyone who should have an account has one. The second is the default role: DEFAULT_USER_ROLE=pending means every new registration goes into a holding state where the admin must manually approve them before they can do anything — the key setting for controlled access, according to the multi-user guide. The admin panel also has the same switch under Settings, General: turn off Enable New Sign Ups there if the environment change does not take effect, because settings saved in the database take priority over environment variables after the first start.
Test the lock
Open the sign-up page in a private browser window. With sign-ups off, there should be no way to create an account. With sign-ups on and the role pending, create a test account and confirm it cannot chat until you approve it in the Admin Panel — then delete the test account. If a test account can chat immediately, the pending role is not applied: check DEFAULT_USER_ROLE and the admin panel setting.
Expected result. We checked the linked Open WebUI guides for ENABLE_SIGNUP, DEFAULT_USER_ROLE=pending, and the admin panel switch. We did not run this software ourselves for this guide, so no output here is a recorded result; steps marked UNTESTED were checked against the sources below, not run.
Limits
Environment variables are mostly read only on first start, then stored in the database — changing the variable later may do nothing until you change the setting in the admin panel too. Do not disable authentication (WEBUI_AUTH=false) on a shared server. We did not run Open WebUI, so the settings paths are from the guides, marked UNTESTED on this machine.
Sources
- Open WebUI multi-user setup — ENABLE_SIGNUP=true allows new registrations, flip it off after everyone has an account; DEFAULT_USER_ROLE=pending sends every new registration to a holding state where the admin must approve them
- Self-host Open WebUI — after the admin exists, new sign-ups are disabled; if you enable them, new accounts are created with the pending role and cannot use anything until an administrator approves them; WEBUI_AUTH, ENABLE_SIGNUP and DEFAULT_USER_ROLE from the environment variable reference
- Run Ollama with GPU on Ubuntu and Open WebUI — lock down registration right after creating your admin, otherwise anyone who finds your URL can sign up; turn off Enable New Sign Ups in Admin Panel, Settings, General
Checked 2026-11-28.
