ServerAvatarDocs
Servers

System users

Add, change and delete the Linux accounts on a server, control their sudo and SSH access, and manage SSH keys for one user or many.

System users are the Linux accounts on a server. They own your applications and can sign in over SSH or SFTP. Open System Users in the server's sidebar. The list shows each user's Username, Applications, Shell, Sudo, SSH, Created date and, if you may manage users, Password.

Use the search box (Search by username) to filter, and the column headers to sort by username or creation date. You can show 10, 20, 30, 50 or 100 users per page.

The System users page with the acme user, the Search by username box, the SSH keys button and the Add system user button

Add a system user

  1. Open System Users and select Add system user. The dialog says "Creates a Linux account on the server."

    The Add system user dialog with the Username, Password, Public SSH key and More options fields

  2. Enter the Username: lowercase letters, numbers, - and _. It must start with a letter or _ and have at most 32 characters.

  3. Set the Password, or clear it. Central fills in a generated one, with Generate to make another. Leave it empty for key-only sign-in. A password has 8 to 255 characters and no control characters.

  4. Paste a Public SSH key if you want one on the account. It is optional. Use one key on one line, starting with ssh-ed25519, ssh-rsa or ecdsa-.

  5. Open More options if you need them:

    • Shell: leave as bash unless the account should not be able to log in.
    • Allow sudo: lets the account run commands as root. You can change it later.
    • Allow SSH access: lets the account sign in over SSH.
  6. Select Add system user. You see "username was added."

Copy the password with Copy password before you close the dialog. If you manage users, you can copy it again later from the list.

Change a password

  1. Open the user's ⋯ menu (Actions for username) and choose Change password.
  2. Enter the new password (8 to 255 characters, no control characters) and confirm.

You see "Password changed for username."

Turn sudo on or off

Select the Sudo switch on the user's row. Turning sudo on asks you to confirm Give username sudo rights? with Turn sudo on. Turning it off takes effect at once. You see "Sudo granted to username." or "Sudo removed from username."

On a ServerAvatar managed server you cannot change sudo: "You can't change sudo access on a managed server."

Turn SSH access on or off

Select the SSH switch on the row. You see "SSH login enabled for username." or "SSH login disabled for username."

  • Users with sudo can always sign in over SSH. The row says "Sudo users can always sign in over SSH. Turn off sudo to control SSH here."
  • A user whose shell refuses login cannot sign in either: "The shell is set to “shell”, which refuses login. Choose a shell that allows login first."
  • The per-user SSH switches only take effect after you save Access & security in the server's Settings once. Until then the page says "SSH switches aren't active yet — every user can sign in over SSH until Access & security is saved." Use Open Access & security to go there.

Change a user's shell

Choose another shell in the Shell column. The choices come from the server and the page describes common ones: bash (log in over SSH and run commands), sh, zsh, and nologin ("Runs the app but can't log in. Recommended."). You see "username now uses shell."

Manage a user's SSH keys

  1. Open the user's ⋯ menu and choose SSH keys. The sheet SSH keys of username lists each key with its name and Fingerprint.
  2. To add a key, enter a Key name (for example work-laptop) and paste the Public key, then select Add key. You see "SSH key name added to username."
  3. To remove a key, select its remove button and confirm Remove the key name? You see "SSH key name removed from username."

Manage SSH keys across all users

Select SSH keys at the top of the page to open SSH keys on this server. It lists keys added through ServerAvatar, one row per key, with the users that have each one. Keys put on the server by hand, root's keys and the provider's keys are never shown or changed.

Add a key to several users

  1. Select Add a key to several users.
  2. Enter a Key name and paste the Public key.
  3. Tick the System users that should get it, or All. Users that already have it are marked "already has it".
  4. Select Add to users. A failure for one user does not stop the others. The sheet shows the result per user (added, already had this key, couldn't add it).

You can choose up to 100 users at once. If SSH access is off for a user, or the firewall has no rule for the SSH port, the sheet warns you that the key cannot be used yet. Open Firewall takes you to the Firewall.

Remove a key from several users

  1. Select Remove… on the key.
  2. Tick the users to remove it from.
  3. Select Remove from n users.

The server never sends a public key back. To add an existing key to more users, paste it again.

Delete a system user

  1. Open the user's ⋯ menu and choose Delete.
  2. Read Delete username?: "The user and its home folder are removed from the server."
  3. Tick Also end this user's running sessions if needed.
  4. If delete protection is on, type the confirmation it asks for. See Delete protection.
  5. Confirm. You see "username was deleted."

A user that runs applications cannot be deleted: "username still runs applications. Delete these applications, or move them to another system user, then try again." The number in the Applications column opens the list (Applications using username).

Limits

  • Username: up to 32 characters, ^[a-z_][a-z0-9_-]*$.
  • Password: 8 to 255 characters.
  • Public key: one line, up to 16,384 characters.
  • A key action can include up to 100 users.

Who can do this

  • Seeing the list needs View on System Users. Adding, changing, deleting and managing keys needs Manage.
  • Without Manage, the Password column is empty: passwords are shown only to people who manage system users.
  • The changes are done on the server and appear in its activity log.

Common errors

  • You can't change sudo access on a managed server.
  • The shell is set to “shell”, which refuses login. Pick a shell that allows login before turning SSH on.
  • Sudo access could not be changed., SSH login could not be changed., The login shell could not be changed. The server refused the change. Try again.
  • This field is required. and Choose at least one system user. appear in the key forms.

On this page