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
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:
aliceUse 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
- Check the account
- Make sure sudo is installed
- Add to the admin group
- Set up sudo
- 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.