ServerAvatarDocs
Server management

System users

The Linux accounts that own and run your applications. Create them, set the login shell, grant sudo and SSH, manage passwords and SSH keys, and delete one or several at once.

Every application on the server runs as a Linux user. The panel creates one automatically when you create an application. That account owns the files, runs the PHP-FPM pool or the Node process, and is the account you use for SFTP.

System Users, under Security in the sidebar, lists those accounts and any you add yourself: a shared deploy account for CI, or a person who needs SSH but should not own anything.

The System Users screen with a search box, an Add user button and a table of two users, deploy-demo and acme, showing the masked password, the login shell, the Sudo and SSH switches and the application count

The table

ColumnWhat it tells you
UsernameThe account name, with its home directory underneath and a copy button.
PasswordThe Linux account password, masked, with a copy button. Not set if the account has no password.
ShellThe login shell, changeable in place from the dropdown.
SudoA switch for whether the account is in the sudo group.
SSHA switch for whether the account may sign in over SSH.
ApplicationsNo applications, or a button such as 4 applications that lists them.

The search box (Search users…) filters by name. The refresh button reloads the list. The ⋯ menu at the end of a row holds Password, SSH keys and Delete. A wide screen also shows a Created column.

The SSH switches do nothing until Access & security is saved

Until you save Access & security once, the server has no per-user SSH rule, so every account can still sign in over SSH whatever the switch says. A banner says so (The SSH on/off switches don't work until you save Access & security. Until then, every user can sign in over SSH.) with Open Access & security. Switching SSH off before then is recorded, and the toast says It takes effect once you save Settings → Access & security.

Add a user

Click Add user. The dialog Add system user says Creates a Linux account on the server. Only the username is required. The panel has already generated a password.

Type the Username. It becomes a real Linux account, for example deploy or ci-runner. Use lowercase letters, digits, hyphens and underscores. It must start with a lowercase letter or an underscore and can have up to 32 characters. The home directory is /home/<username>. The panel refuses names the system uses (root, www-data, ubuntu, admin, sudo, docker, mysql, postgres, redis, panel and similar), and a name that already exists as a user or group on the server.

Leave the Password as generated, or clear it. Generate makes a new one. A password must have at least 10 characters with an upper-case letter, a lower-case letter and a number, and no line breaks or other control characters. Clearing the field creates the account with no password at all, which is right for an account that should only ever sign in with a key.

Paste an SSH public key if you have one. It is optional and becomes the account's first authorised key. See SSH keys for what is accepted.

Open More options for the three settings that are easy to get wrong:

  • Login shell: leave it on Full shell access (bash) unless the account should not be able to log in. The list only offers shells installed on this server: Full shell access (bash), Basic shell (sh), Full shell access (zsh), No login and No login (legacy).
  • Allow sudo: off by default. It lets the account run commands as root, and you can change it later.
  • Allow SSH login: off by default. It needs a shell that allows login.

The Add system user dialog with the username deploy-demo, a hidden generated password with a Generate link, an SSH public key box, and More options open showing Login shell, Allow sudo and Allow SSH login

Click Create user. The account appears in the table with No applications. A toast says System user created.

Creating a user from this screen does not create an application, a web root or a PHP-FPM pool. Those come with the application, not the account.

Change a user afterwards

The shell dropdown and the two switches act at once. There is no save button.

  • Shell. Pick another shell from the dropdown. A shell that refuses login, such as No login, cannot be set while SSH access is on: turn SSH off first (This shell refuses login, so it cannot be set while SSH access is on. Turn SSH off first.).

  • Sudo. Granting sudo asks first, because it hands out root:

    The Grant root access? dialog saying that deploy-demo will be added to the sudo group and that it can be revoked anytime, with Cancel and Grant sudo buttons

    Click Grant sudo. Turning sudo off does not ask.

  • SSH. The switch turns SSH sign-in on or off for the account. It cannot be turned on for an account whose shell refuses login (The shell is set to "No login", which refuses login. Choose a shell that allows login first.). For an account with sudo the switch is shown on and locked: Sudo users can always sign in over SSH. Turn off sudo to control SSH here.

The row actions

Password

Password opens a dialog for the Linux account password. It shows the Current password (hidden, with a copy button) and a form to set a new one.

The Password dialog for deploy-demo, with a note that SSH password sign-in is off on this server, the hidden Current password, and New password and Confirm password fields

Enter the New password (at least 10 characters, with upper-case and lower-case letters and a number) and Confirm password, or click Generate, then click Save password. The toast says Password updated.

If SSH password sign-in is off on this server (in Access & security), the dialog says SSH password sign-in is off on this server, so this password can't be used to sign in over SSH or SFTP. Use an SSH key instead.

The password is the Linux account password, the one used to sign in to the server as this user. It is not an OSS Panel login: panel accounts are separate.

SSH keys

SSH keys lists the keys that may sign in as this account. Each row shows the label, the key type (for example Ed25519 or RSA) and the fingerprint. The trash button (Remove key) removes one at once, and the toast says SSH key removed.

The SSH keys dialog for deploy-demo showing No SSH keys added yet, and the Add a key form with a Label field and a Public key box

Enter a Label so you can tell the keys apart later, such as work-laptop. It is required and can have up to 255 characters.

Paste the Public key. This is the .pub half of an SSH key pair, a single line starting ssh-ed25519, ssh-rsa or similar. It is safe to share. Never paste the private key here.

Click Add key. The toast says SSH key added. If the account already has the key, you are told so instead.

The panel refuses a value that is not a valid public key, a DSA key (Ubuntu no longer accepts them) and an RSA key shorter than 2048 bits. Use Ed25519 (recommended) or RSA 4096.

The keys of all accounts can also be listed, deployed to several accounts and removed by fingerprint through the API. The panel has no screen for that.

Delete

Delete removes the Linux account. The dialog Delete system user? says This permanently removes deploy-demo, its home directory, and its cron jobs. This cannot be undone. The switch End sessions signs the user out and stops anything it is running before the account is deleted. Leave it off to be told instead if the account is in use.

An account that owns applications cannot be deleted. The menu entry is disabled and says This user owns applications and can't be deleted. Delete or move the applications first.

See a user's applications

The application count in the Applications column opens Applications — acme, a list of what the user owns and runs, with each application's domain and status. Click one to open it.

The Applications dialog for acme listing acme-landing, acme-flows, acme-blog and acme-site with their domains and the status Running

Delete several users at once

Tick the checkboxes in the first column. A bar shows 2 selected with Clear and Delete selected. The header checkbox selects every user on the page.

Click Delete selected. The dialog Delete 2 system users? lists the accounts. Each one is removed with its home directory and its cron jobs, and this cannot be undone. An account that still owns an application, or is signed in, is kept, and you are told why. Turn on End sessions to sign users out and stop what they run before they are deleted.

The Delete 1 system user? dialog listing deploy-demo, with the End sessions switch and the Delete 1 user button

Click Delete 2 users. The panel reports 2 system users deleted. If some were kept, it says 1 deleted. 1 was kept; the reason is next to it. and shows the reason on the row: Not deleted: owns an application, Not deleted: signed in or running something, or Not deleted: the server refused. For the first, move or delete their applications first. For the second, delete again with End sessions on.

Limits

  • Usernames: lowercase letters, digits, hyphens and underscores, starting with a letter or underscore, at most 32 characters.
  • Passwords: at least 10 characters with upper-case and lower-case letters and a number.
  • SSH key labels: up to 255 characters. RSA keys: 2048 bits at least. DSA keys are refused.
  • Delete several: up to 50 accounts in one request, and at most six such requests a minute.

Who can do this

  • System User → View shows the list, the home directories and the SSH keys. The password column is not shown to this role, and an account without a password carries a No password badge instead.
  • System User → Manage is needed to add, change, delete and set passwords and keys. Without it the switches only show their value and the menu entries are disabled. A role without View sees Your role doesn't include permission to view this. Ask an administrator to grant it.

Common errors

  • This username is reserved and cannot be used. Choose another name.
  • A user or group with this name already exists on the server. Choose a different username. The name is taken on the server, even if the panel does not list it.
  • The provided value is not a valid SSH public key. Paste the .pub file, one line.
  • This SSH key has already been added. or deploy-demo already has this SSH key, as "…". Nothing to do.
  • This is a DSA key… and This RSA key is too short… Use Ed25519 or RSA 4096.
  • SSH access needs a shell the user can log in with… Choose a login shell first.
  • This user has SSH access, and the chosen shell refuses login… Turn SSH access off first, or pick a login shell.
  • The bash shell is not installed on this server. Install the shell first, or choose another.
  • This system user still owns one or more applications and cannot be deleted. Delete or move the applications first.
  • deploy-demo is still signed in or running something… Sign them out, wait, or delete again with End sessions on.
  • The password cannot contain line breaks or other control characters.

On this page