Skip to content
Shellbay

Users & Access · about 1 min · 4 steps

Lock a user

Stops an account from signing in, with a password or an SSH key, without deleting anything. Unlock it again any time.

Runs on

  • Debian / Ubuntu: supported
  • RHEL / Fedora: supported
  • Alpine: supported

What it changes on your server

  • Locks the account's password and marks the account expired, which SSH also refuses.
  • Optionally stops everything the account is running, which signs it out.
  • Alpine: installs the shadow package for usermod.

What Shellbay asks you

  1. Which account should be locked?

    Its files, keys and settings stay as they are; it just can't sign in.

    Account
    A new Linux account name

    Example: alice

  2. Sign it out now?

    Locking stops new sign-ins; open sessions continue. Turn this on to also stop every program the account runs, including any app it hosts.

    Sign it out now
    On or off. Default: off

Steps

  1. Check the account
  2. Make sure the account tools are installed
  3. Lock the account
  4. Check it's locked

Shellbay checks the server before the first step, and stops at the first step that fails.

When it's done

  • ‹account› can't sign in. Use Unlock a user to let it back in.