Docs / Command-line reference — the nimbopanel commands on the server

Command-line reference — the nimbopanel commands on the server

Most of the server is run from the panel. A few things are done at the server itself, over SSH: recovering a locked-out administrator, offline licensing, updating by hand, switching on the root terminal and rotating the encryption key. This page lists every command the nimbopanel program accepts.

Run them as root (or with sudo). They read /etc/nimbopanel/config.json, which is readable only by root and the panel's own group. Every command that reads the configuration also takes -config <path>, but on a normal install you never need it.

The commands

Command What it does Changes the server?
nimbopanel update [--quiet] Installs a newer signed release, if there is one Yes
nimbopanel license-fingerprint Prints this server's id for offline licensing No
nimbopanel license-import <token> Installs a licence token you got offline Yes
nimbopanel reset-admin-password <user> Sets a new administrator password Yes
nimbopanel disable-2fa <user> Removes an administrator's two-factor sign-in Yes
nimbopanel hash-password [password] Prints a bcrypt hash of a password No
nimbopanel rotate-secrets-key Re-encrypts stored secrets under a new key Yes
nimbopanel root-terminal on|off|unlock|status Controls the root terminal in the panel Yes (except status)
nimbopanel setup Runs the browser setup wizard Yes
nimbopanel-doctor Checks the server and says what needs attention No

A word that is not one of these commands is refused with the list above. Run with no command at all, nimbopanel starts the control plane itself. That is the job of the nimbopanel systemd service, so do not start a second one by hand. Two more commands, mail-milter and srs-serve, exist only for the mail services that systemd starts; you never run them yourself.

Updating

sudo nimbopanel update

It compares the running program with the newest published release. If there is nothing newer it says Nimbopanel is already up to date. and stops. Otherwise it downloads the installer, checks the release signature against the key built into the program, checks that the installer matches the signed list, and runs the installer's update step. It refuses a release whose signature does not check out, and a signed release that is older than one this server has already installed.

--quiet prints only when an update is applied or something fails; an unreachable update server is then a skipped run, not an error. The hourly nimbopanel-update.timer uses it together with --scheduled, which follows the Update Preferences you set in the panel. The panel's Update now button runs the same update.

Licensing without a network

For a server that cannot reach the licence server:

nimbopanel license-fingerprint
sudo nimbopanel license-import --file /root/token.txt
sudo systemctl restart nimbopanel

Paste the printed id into the offline form of your licence in the portal, and it gives you a token (see How licensing works). license-import takes the token as an argument, from a file with --file, or on standard input. It checks the signature before saving the token, prints the tier, status and expiry date, and warns if the token was made for a different server id. The licence applies after the panel restarts.

Recovering the administrator

A forgotten or wrong password

sudo nimbopanel reset-admin-password admin

With no --password, a strong 20-character password is generated and printed. To choose one, add --password '<new password>' (at least 8 characters). The username can come before or after the flags. If no administrator by that name exists, the command refuses and says how many there are. It creates the account only when the server has no administrator at all, so it never adds a second one by accident.

A password typed on the command line stays in your shell history. Let the command generate one, or clear the history afterwards.

A lost authenticator

Warning. disable-2fa removes two-factor sign-in from an administrator, so the password alone opens the panel. Use it only for the administrator who is locked out, and only once you are sure who is asking.

sudo nimbopanel disable-2fa admin

It works for administrator logins only. Sign in with the password and set up two-factor sign-in again straight away, under Security.

Locked out by too many attempts

After repeated failed sign-ins the panel blocks the address for a while, and fail2ban may ban it from the whole server. See Security Advisor and blocked addresses for how to lift either.

Hashing a password

nimbopanel hash-password prints only a bcrypt hash, for the admin_password_hash setting. With no argument it reads the password from standard input, which keeps it out of your shell history.

Rotating the encryption key

The panel encrypts the secrets it has to keep, such as payment gateway credentials, API tokens and two-factor seeds, with secrets_key from the configuration.

Warning. Do not delete or replace the old key until the command below reports failed 0. A secret no configured key can open stays unreadable.

  1. Make a new key: openssl rand -base64 32.
  2. In /etc/nimbopanel/config.json, move the current secrets_key value into the list secrets_key_old and put the new key in secrets_key.
  3. sudo systemctl restart nimbopanel. The panel now reads old values with the old key and writes new ones with the new key.
  4. sudo nimbopanel rotate-secrets-key. It prints scanned N, re-encrypted N, failed N. It is safe to run again if it is interrupted.
  5. Only when it says that all values are under the current key, remove secrets_key_old and restart the panel again.

If failed is above zero, the command exits with an error. Keep secrets_key_old as it is and find out which value it is before you change anything. Run with secrets_key_old empty, the command only checks that every value opens with the current key.

The root terminal

Warning. on gives the panel a way to open a root shell in the browser. Switch it on only if you need it, and switch it off when you are done.

sudo nimbopanel root-terminal on
sudo nimbopanel root-terminal status
sudo nimbopanel root-terminal unlock
sudo nimbopanel root-terminal off

The panel itself can switch the root terminal off but never on. on prints a key for a new entry in your authenticator app; running on again makes a new key and the old entry stops working. After 10 wrong codes in a row it locks until you run unlock. off closes open root terminals within a few seconds. More in the Administrator guide.

The setup wizard

nimbopanel setup serves the first-run wizard on port 2087, protected by a one-time token printed in the terminal. The installer starts it for you (see Installing Nimbopanel); run it by hand only if that was skipped. It writes the configuration and starts the panel's services.

nimbopanel-doctor

sudo nimbopanel-doctor

A read-only check of the whole server. It changes nothing and prints each problem with the command that fixes it. Sections: Services, Config sanity, Listeners, Mail, TLS / certificate, Time sync, Disk, OS updates, SELinux (RHEL family only) and Panel. It ends with a summary of failures and warnings, and exits with a non-zero status if there is any failure, so a monitor can watch it. A warning alone does not fail it.

Troubleshooting

  • "must run as root" — update and root-terminal refuse to run otherwise. Use sudo.
  • "REFUSING TO UPDATE" — the release did not pass its signature or version check, and nothing was installed. Try again later; if it persists, contact support.
  • The licence still shows Free after license-import — restart the panel: sudo systemctl restart nimbopanel.
  • Something is wrong and you do not know what — run sudo nimbopanel-doctor first. See also Troubleshooting.

To repeat the installer's repair steps, keeping your settings, run sudo bash install.sh --update.

Related: Administrator guide · How licensing works · Troubleshooting