Skip to content
Shellbay

Users & Access · about 1 min · 5 steps

Grant sudo

Lets an existing account run commands as root with sudo, to administer the server.

Runs on

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

What it changes on your server

  • Installs sudo if it's missing.
  • Adds the account to the sudo (Debian, Ubuntu) or wheel (RHEL, Fedora, Alpine) group.
  • Optionally lets it use sudo without a password (in /etc/sudoers.d).

What Shellbay asks you

  1. Which account gets sudo?

    Sudo can do anything on the server, so only grant it to people you trust completely. To create a new admin account with your key in one go, use Create a sudo user.

    Account
    A new Linux account name

    Example: alice

  2. Use sudo without a password?

    Accounts that sign in with a key usually have no password, so sudo can't ask for one. Turn this on so they can use sudo straight away. If it's off, they need a password set with passwd.

    Allow sudo without a password
    On or off. Default: on

Steps

  1. Check the account
  2. Make sure sudo is installed
  3. Add to the admin group
  4. Set up sudo
  5. Check sudo access

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

When it's done

  • ‹account› can use sudo from its next sign-in. Check who has sudo any time with List user accounts.