Skip to content

Linux and macOS roles ​

What this is ​

On Linux, each role in Server Roles is a Webmin-style module:

  • Structured tables and forms for the role's objects: sites, shares, zones, databases, containers and so on.
  • A Config tab for safe editing of the role's own configuration files.

On macOS you manage the built-in sharing services plus Docker / Colima and Homebrew services.

The shared controls (tables, filters, pickers, Browse…) are explained in Working in a role.

Who can use it ​

  • Linux devices whose device type is a server, and macOS Server devices.
  • Server Roles module: Read to view tables, logs and config; Edit to change anything or browse the server's folders.
  • The agent must be Online.

How to open it ​

  1. Open the server and go to Management → Server Roles.
  2. Click the role's card.

Do the task ​

Edit configuration safely (Linux) ​

Every change to a config file goes through the same steps:

  1. Backup: the file is backed up.
  2. Write: the new version is written in one step.
  3. Validate: the role's own checker runs, for example nginx -t, apachectl configtest, testparm or named-checkconf.
  4. Reload: the service reloads only if validation passes.

If validation fails, the previous version is restored automatically and you see the checker's output.

To edit a file:

  1. Open the Config tab and pick a file. Only the role's own configuration folders are listed.
  2. Edit the text. Unsaved changes appears until you save.
  3. Click Validate & save.
  4. If it fails, the banner says restored the previous version. Open Show output to see what the checker reported.
  5. To go back to an earlier version, click Restore next to an entry under Backups.

Config tab for Nginx with a file open, Validate & save button and the Backups list

Failed save banner saying the previous version was restored, with nginx -t output shown

Forms such as New server block or New share use the same safe path, so a bad value never leaves the service broken.

Logs (Linux) ​

  1. Open Logs.
  2. Pick Journal, All logs or a specific log file (for example /var/log/nginx/error.log).
  3. Set the number of lines and click Refresh.

Logs tab with the source picker listing Journal, All logs and the role's log files

Web servers: Nginx, Apache, PHP-FPM ​

  1. Server blocks (Nginx) or Virtual hosts (Apache), New … form:
    • Server names, listen port and document root (Browse…).
    • Reverse proxy target.
    • TLS certificate and key, or raw config instead of the fields.
  2. Enable / Disable a site without deleting it. Delete keeps a backup.
  3. Apache Modules can be enabled or disabled on Debian-family systems.
  4. Setup: test the configuration, reload, reopen log files.
  5. PHP-FPM: Versions (test config, reload) and Pools (new, edit process-manager settings, delete).

New server block form with server names, root via Browse and reverse proxy fields

File sharing: Samba and NFS ​

  • Samba Shares:
    • New share sets the path (Browse…), comment, read-only, browseable and guest settings.
    • Valid users, Write list and force user or group are picked from the server's users and groups.
    • Users: add an existing Unix user to Samba with a password, set the password, enable, disable or delete.
    • Sessions, Connections and Open files show who is connected. Setup validates with testparm, reloads or disconnects a client by IP.
  • NFS Exports:
    • New export: directory, client (host, network or *) and options.
    • Replace clients or Remove.
    • Setup → Apply exports runs exportfs -ra.
    • Unexport everything is critical.

Samba New share form with Valid users chips picked from the server's users and groups

Docker ​

  1. Containers: filter by state.
    • Row actions: start, stop, restart, kill, logs, remove.
    • Run container:
      • Image picked from local images, or type one.
      • Name, ports, environment, volumes.
      • Optionally Bind a host folder (Browse…) with Mount it at for the container path.
  2. Images: Pull image, Remove.
  3. Volumes: New volume (optionally backed by an existing host folder), Remove, Prune unused volumes (critical).
  4. Networks, Compose projects (up, restart, down).
  5. Setup: disk usage and Prune unused data (critical).

Run container form with image picker and a host folder bound to a container path

Other Linux roles ​

RoleWhat you can do
Directory (LDAP / FreeIPA)LDAP users (new, reset password, delete) and groups with a Members view. FreeIPA users, groups and hosts. Setup: sign in to FreeIPA (kinit) before IPA changes, sign out afterwards.
DNS (BIND)Zones (new master, slave or forward; retransfer, NOTIFY, reload, delete) with Records (add, edit, delete; serial bumped and zone checked before reload). Setup: check config, reload, rndc reconfig, flush cache.
DHCP (ISC / Kea)Subnets with Reservations, leases (read only). Setup: validate, restart.
MariaDB / MySQLDatabases (new, drop), users (new, drop), processes (kill). System databases are protected.
PostgreSQLClusters, databases (owner picked from roles), roles, connections (terminate), client authentication rules (pg_hba).
Mail (Postfix / Dovecot)Queue (flush, delete one or all), Postfix settings, aliases, Dovecot sessions. Setup: check Postfix config.
Fail2banJails (start, stop, reload) with Banned IPs (ban, unban).
Certbot / TLSCertificates (issue, renew, revoke, delete), renewal configs, renewal timer. Issuing accepts the Let's Encrypt terms.
Libvirt / KVMVMs (start, shut down, reboot, force off, suspend, autostart, delete) with Snapshots. Networks and storage pools with volumes.

macOS roles ​

macOS built-in services are turned on or off, not installed. Use each role's Setup tab.

RoleWhat you can do
File Sharing (SMB)Turn SMB sharing on or off. Share points: add (folder via Browse…, name, guest access) or remove.
Screen Sharing / ARDTurn Screen Sharing on or off (turning it off is critical: it can cut off remote access). Allowed users picked from the Mac's local users, or allow all. Newer macOS may require MDM or local approval; the error says so.
Print Sharing (CUPS)Printers: add, enable or disable, accept or reject jobs, share, make default, remove. Jobs: hold, release, cancel; filter by printer. Print sharing on or off.
Docker / ColimaStart, stop or restart the Colima VM. Containers, images, volumes, networks.
Homebrew servicesStart, stop or restart services. Install, upgrade or uninstall approved server formulae (nginx, httpd, mysql, mariadb, postgresql, redis, memcached, dnsmasq, php).

CUPS Printers table on a Mac with the Actions menu open

File Sharing Setup tab with Turn on and Turn off SMB file sharing

Tips ​

  • Use the structured tables for everyday changes and Config for anything else. Both are validated and rolled back on failure.
  • After a failed save, read Show output first. It is the role's own checker telling you the line that's wrong.
  • Backups keeps the last versions of each file. Restoring is also validated before it goes live.

OnPoint RMM knowledge base