Skip to content
Shellbay

Users & Access · about 1 min · 4 steps

Revoke sudo

Takes away an account's ability to act as root with sudo.

Runs on

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

What it changes on your server

  • Removes the account from the sudo, admin and wheel groups.
  • Deletes the sudo rule Shellbay made for it in /etc/sudoers.d.
  • Other sudo rules that name the account are listed, not edited, and the run fails so you notice them.

What Shellbay asks you

  1. Which account loses sudo?

    The account stays and can still sign in; it just can't act as root any more.

    Account
    A new Linux account name

    Example: alice

Steps

  1. Check the account
  2. Remove from the admin groups
  3. Remove Shellbay's sudo rule
  4. Check sudo is gone

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

When it's done

  • ‹account› can't use sudo any more. Sessions already open keep sudo until they end.