# Locked out of the web interface after losing the second factor

UrbeStack sysadmin note about UrbeStack. Last updated 30 Nov 2026.

You cannot sign in to the web interface after losing your second-factor device if you have no recovery code. Root can turn off the second factor for the UrbeStack account at the server's shell.

## Symptoms

The web interface accepts your password, then asks for a code from the device you lost.

## Cause

With the second factor on, signing in requires your password and either a code from the device or one of the account's recovery codes.

## Resolution

As root at the server's shell, turn off the account's second factor.

```
urbestack-user-set --name NAME --second-factor off
```

Sign in with the account's password, then enroll a new device from the account page.

For an account that still has its device, get new recovery codes with `urbestack-user-second-factor-codes --name NAME`.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
