Theme
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
- Open the server and go to Management → Server Roles.
- Click the role's card.
Do the task
Edit configuration safely (Linux)
Every change to a config file goes through the same steps:
- Backup: the file is backed up.
- Write: the new version is written in one step.
- Validate: the role's own checker runs, for example
nginx -t,apachectl configtest,testparmornamed-checkconf. - 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:
- Open the Config tab and pick a file. Only the role's own configuration folders are listed.
- Edit the text. Unsaved changes appears until you save.
- Click Validate & save.
- If it fails, the banner says restored the previous version. Open Show output to see what the checker reported.
- To go back to an earlier version, click Restore next to an entry under Backups.


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)
- Open Logs.
- Pick Journal, All logs or a specific log file (for example
/var/log/nginx/error.log). - Set the number of lines and click Refresh.

Web servers: Nginx, Apache, PHP-FPM
- 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.
- Enable / Disable a site without deleting it. Delete keeps a backup.
- Apache Modules can be enabled or disabled on Debian-family systems.
- Setup: test the configuration, reload, reopen log files.
- PHP-FPM: Versions (test config, reload) and Pools (new, edit process-manager settings, delete).

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.
- New export: directory, client (host, network or

Docker
- 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.
- Images: Pull image, Remove.
- Volumes: New volume (optionally backed by an existing host folder), Remove, Prune unused volumes (critical).
- Networks, Compose projects (up, restart, down).
- Setup: disk usage and Prune unused data (critical).

Other Linux roles
| Role | What 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 / MySQL | Databases (new, drop), users (new, drop), processes (kill). System databases are protected. |
| PostgreSQL | Clusters, 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. |
| Fail2ban | Jails (start, stop, reload) with Banned IPs (ban, unban). |
| Certbot / TLS | Certificates (issue, renew, revoke, delete), renewal configs, renewal timer. Issuing accepts the Let's Encrypt terms. |
| Libvirt / KVM | VMs (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.
| Role | What 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 / ARD | Turn 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 / Colima | Start, stop or restart the Colima VM. Containers, images, volumes, networks. |
| Homebrew services | Start, stop or restart services. Install, upgrade or uninstall approved server formulae (nginx, httpd, mysql, mariadb, postgresql, redis, memcached, dnsmasq, php). |


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.
