Access Rights in NMIS 9.7.0
From NMIS 9.7.0 twelve access rights are restricted to administrators. If you delegate any administrative work to a manager or engineer today, this page tells you what stops working and what your options are.
How NMIS authorisation works
Every user has one numeric privilege level, set in PrivMap.nmis:
Level | Role |
|---|---|
0 | administrator |
1 | manager |
2 | engineer |
3 | operator |
4 | guest |
5 | anonymous |
Access.nmis lists each right and which levels hold it. Rights are per table and come in
pairs: table_<name>_view to read a table and table_<name>_rw to change it.
Two properties of this model matter for what follows. There is no field-level authorisation, so a right to edit a table is a right to edit every field in it. And there is no rule preventing someone granting a privilege higher than their own. So a right to edit a table is as powerful as the most powerful thing that table controls.
What changed
Twelve rights that were held by manager or engineer are now administrator-only.
Right | Table or page | Levels that lost it |
|---|---|---|
| Users, meaning accounts and passwords | manager |
| Users | manager |
| PrivMap, the level-to-role mapping | manager |
| Access, this rights matrix itself | manager, engineer |
| Access | manager, engineer |
| AuthLdapPrivs, the LDAP privilege mapping | manager, engineer |
| Config, every NMIS setting | manager, engineer |
| Config and Setup pages | manager, engineer |
| Tables, the registry of which tables the editor exposes | manager, engineer |
| Services, including each service's check command | manager |
| Logs, the list of log files the viewer offers | manager |
| Models, Thresholding Alert Tuning and Model Policy | manager |
table_authldapprivs_rw was already administrator-only and is unchanged.
table_models_view is deliberately unchanged, so models and threshold settings stay readable
by manager.
Why these particular tables
Each one decides how NMIS itself behaves rather than what it monitors.
Users, PrivMap, Access and AuthLdapPrivs define who may do what. Anything that can edit them can change the answer to that question.
Config holds the authentication and database settings, including the key NMIS uses to sign session cookies and the credentials for LDAP, TACACS and RADIUS. The Config and Setup pages display those values, which is why the view right moved as well as the write right.
Tables is the registry that decides which tables the editor exposes at all.
Services holds each service's check command, which NMIS executes.
Models hold expressions that NMIS evaluates during polling. Thresholding Alert Tuning and Model Policy edit the same files.
Logs decides which files the log viewer opens.
What this costs, and what to do instead
You lose | Who | What to do |
|---|---|---|
Creating and editing user accounts | manager | An administrator does it. This is the loss most sites will feel, because it is the normal onboarding path. |
Editing global configuration, including thresholds, polling and mail settings | manager, engineer | An administrator does it. Genuine operational tuning shared a page with settings that grant administration, and the page could not be split in this release. |
Thresholding Alert Tuning and Model Policy | manager | An administrator does it. Splitting threshold tuning out from model editing is planned work, not yet delivered. |
Editing service definitions | manager | An administrator does it. |
Curating the log list | manager | An administrator does it, and only for files inside the NMIS log directory. |
Viewing the Users, Access and AuthLdapPrivs tables | manager, engineer | No replacement. These list who holds which privilege. |
Viewing the Config and Setup pages | manager, engineer | No replacement. Those pages display configuration secrets. |
Nothing changes for operator, guest or anonymous. Monitoring, dashboards, graphs, events and node views are untouched at every level.
How it is enforced
Two layers, and you need to understand both before changing anything.
The shipped matrix. conf-default/Access.nmis grants these rights to level 0 only. A new
installation gets this directly.
The code guard. NMISNG::Auth refuses these rights to any non-administrator regardless of
what the live conf/Access.nmis says. This exists because conf/Access.nmis belongs to you
and is never overwritten on upgrade, so the shipped change alone would reach new installations
only.
On upgrade, the installer runs admin/harden_access_table.pl --apply once, which brings your
live matrix into line with the shipped one for these rights so that what the matrix shows
matches what is enforced. It keeps a copy of your previous file at conf/Access.nmis.prepatch
and records that it has run, so a later deliberate change of yours is not undone by the next
upgrade.
The opt-out, and why it is blunt
auth_lock_sensitive_tables in Config.nmis controls the code guard. It ships as true.
Setting it to an exact false, no or 0 defers every one of these rights back to whatever
your Access matrix says. Any other value, including a blank or a typo, leaves the guard on.
That is deliberate: a misspelled setting should not quietly unlock these tables.
Two things to know before you use it.
It is all or nothing. There is no way to return one right. Turning it off restores every right in the list at once, including the ones that are least safe to delegate.
Turning it off is not enough on its own. Because the installer has aligned your matrix to
administrator-only, you also have to edit Access.nmis to grant the right back. The guard and
the matrix both have to agree before a manager regains anything.
A non-administrator cannot make this change, because table_config_rw is itself in the
guarded list.
Checking where you stand
Run admin/harden_access_table.pl with no arguments. It reports what it would change and
writes nothing. On an upgraded system it should report that everything is already aligned.
To see the rights a given level holds, read conf/Access.nmis. To see which rights the code
guard covers regardless of that file, the list is the twelve above plus
table_authldapprivs_rw.
What is still missing
We would rather say this plainly than let you discover it.
Delegated user administration and delegated threshold tuning were both genuinely useful, and neither has a replacement in NMIS 9.7.0. Restoring them safely means adding constraints that do not exist in the product yet: a user-management path that will not let someone grant a privilege above their own, and a threshold-tuning surface separate from model editing. Both are scoped and ticketed. Until they land, an administrator has to do that work, or you accept the blunt opt-out above with the consequences described.