diff --git a/site/_includes/footer_custom.html b/site/_includes/footer_custom.html index 6fdcd310..3958add5 100644 --- a/site/_includes/footer_custom.html +++ b/site/_includes/footer_custom.html @@ -1,4 +1,4 @@ -

Checked against tacctl 0.2.29 · Reference: the repository docs and man tacctl · About These Docs

+

Checked against tacctl 0.2.30 · Reference: the repository docs and man tacctl · About These Docs

© 2026 Everett C. Haimes III. MIT licensed.

{%- capture issue_title %}docs: {{ page.title }}{% endcapture -%} {%- capture issue_body %}Page: {{ page.url | absolute_url }} diff --git a/site/about-these-docs.md b/site/about-these-docs.md index 29af06b9..6125d105 100644 --- a/site/about-these-docs.md +++ b/site/about-these-docs.md @@ -8,7 +8,7 @@ doctype: explanation # About These Docs -*What this documentation covers, how it relates to the repository docs, and the conventions it follows · Checked against tacctl 0.2.29* +*What this documentation covers, how it relates to the repository docs, and the conventions it follows · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-about-these-docs.pdf){: .pdf-link } diff --git a/site/access-lifecycle.md b/site/access-lifecycle.md index 00fbc2df..aa9b7ac0 100644 --- a/site/access-lifecycle.md +++ b/site/access-lifecycle.md @@ -9,7 +9,7 @@ doctype: how-to # Access Lifecycle -*Joiners, movers and leavers · Checked against tacctl 0.2.29* +*Joiners, movers and leavers · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-access-lifecycle.pdf){: .pdf-link } @@ -79,8 +79,8 @@ tacctl user email alice clear # remove it - The address is never in an audit line: the `--email` value is written as ``, and the `user email` line says only `op=set` or `op=clear`. -Names are lower case: letters, digits, `_` and `-` (`alice-smith`). A period -is refused, because a user gets an account on the tacctl server only when +Names are lower case and start with a letter: a lower-case letter, then +letters, digits, `_` and `-` (`alice-smith`). A period is refused, because a user gets an account on the tacctl server only when the name is a Linux account name, and a period cannot be part of one. Every `user` verb, `passwd` and `config linux uid` refuse it, whether the user exists or not, with `Username must contain only letters, numbers, @@ -94,9 +94,46 @@ at most 32 (the longest a Linux account name can be).` A user an earlier release stored with a longer name keeps working (shown, changed, renamed and removed as before; `backup restore` and `tacctl upgrade` carry it), but has no account on the server or on a host; `tacctl config validate` lists it -under `Names:`. Rename it with `tacctl user rename `. A -name that starts with a digit or `-` (`1alice`) is still accepted, but has -no account either. +under `Names:`. Rename it with `tacctl user rename `. + +**A new name starts with a letter (0.2.30).** Every new user gets a Linux +account, on the tacctl server and on the enrolled hosts, and a name that +starts with a digit or `-` is no account name. So `user add` and the new +name of `user rename` take a lower-case letter, `a` to `z`, as the first +character, and refuse a digit, `-` and `_` (Linux itself would take a leading +`_`, but a new name does not start with one, so that every new name is an +account name everywhere). Nothing is changed, and the command says `Username +'1alice' must start with a letter (a to z): every new user gets a Linux +account, and a name that starts with a digit or '-' is no account name (a new +name does not start with '_' either).` + +- **The first check that fails is the answer.** The checks run in this + order: the shape (letters, digits, `_` and `-`; no period), the reserved + names, upper case, the length (at most 32) and the first character. The + lower-case spelling is suggested (`Names are lower case: use 'alice'.`) + only when it passes the other checks, so the retry is accepted. For + `1Alice` or `_Alice` the answer is that the name must be lower case and + start with a letter. +- **Existing users are unaffected.** Only a new name is checked. A user from + an earlier release named `9dave`, `_svc` or `-x` keeps working: shown, + changed, renamed away to a name that passes the rules, removed and restored + as before, and `tacctl upgrade` and `backup restore` carry it. A name that + starts with `-` is typed as an ordinary word, and `--` is not an + end-of-options marker of the `user` verbs. +- **`tacctl config validate` warns once per user with no account.** Under + `Names:` it warns of a name that starts with a digit or `-` and names + `tacctl user rename `. A name that starts with `_` has an + account and gets no warning, unless it is also longer than 32 characters. +- **`--fix-names` never offers a refused rename.** `tacctl config validate + --fix-names` offers the lower-case spelling of a name with upper case only + when a new name of that spelling would be accepted. For `1Alice`, or a name + over 32 characters, it offers nothing: the warning names the rename to a + name of your choice, and the run still exits 0. + +```bash +tacctl user rename 9dave dave +tacctl config validate +``` **A user stored with a period: the upgrade renames it (0.2.26).** 0.2.20 and 0.2.21 accepted a period, so a store from then can still hold a name with one diff --git a/site/audit-and-compliance.md b/site/audit-and-compliance.md index a421f3ba..853d9844 100644 --- a/site/audit-and-compliance.md +++ b/site/audit-and-compliance.md @@ -9,7 +9,7 @@ doctype: how-to # Audit and Compliance -*Audit trail, evidence and periodic reviews · Checked against tacctl 0.2.29* +*Audit trail, evidence and periodic reviews · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-audit-and-compliance.pdf){: .pdf-link } diff --git a/site/backups-and-undo.md b/site/backups-and-undo.md index 5953bc79..e16173e4 100644 --- a/site/backups-and-undo.md +++ b/site/backups-and-undo.md @@ -9,7 +9,7 @@ doctype: how-to # Backups and Undo -*Snapshots, comparing them, and restoring tacctl's configuration · Checked against tacctl 0.2.29* +*Snapshots, comparing them, and restoring tacctl's configuration · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-backups-and-undo.pdf){: .pdf-link } @@ -217,21 +217,21 @@ before it again, a superuser converts the state with `tacctl rollback` first, then installs that release: ```bash -tacctl rollback 0.2.28 # the dry run: its steps and warnings; writes nothing -tacctl rollback 0.2.28 --apply # convert the state (add --yes when it warns) -tacctl upgrade --branch 0.2.28 # install 0.2.28 +tacctl rollback 0.2.29 # the dry run: its steps and warnings; writes nothing +tacctl rollback 0.2.29 --apply # convert the state (add --yes when it warns) +tacctl upgrade --branch 0.2.29 # install 0.2.29 ``` -`tacctl rollback` takes fifteen targets: `0.2.28`, the release before this -one, and also `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`, `0.2.22`, `0.2.21`, +`tacctl rollback` takes sixteen targets: `0.2.29`, the release before this +one, and also `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`, `0.2.22`, `0.2.21`, `0.2.20`, `0.2.19`, `0.2.18`, `0.2.17`, `0.2.16`, `0.2.9` and `0.2.3`. It refuses, the dry run too and with nothing changed: - while a Junos apply is not settled (`PENDING` or unknown); - when the store cannot be read: a limit that cannot be seen is not hidden; -- for every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`, - `0.2.22`, `0.2.21`, `0.2.20` and `0.2.19`, while an emergency lockdown locks a group; -- for every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24` and `0.2.23`, while an emergency +- for every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, + `0.2.23`, `0.2.22`, `0.2.21`, `0.2.20` and `0.2.19`, while an emergency lockdown locks a group; +- for every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24` and `0.2.23`, while an emergency lockdown has enrolled hosts, or a lifted one still waits for a host: an older release cannot lift sshd's lockdown drop-in on a host. The refusal names the hosts: lift the lockdown, then `tacctl host sync `. @@ -241,30 +241,46 @@ dry run too and with nothing changed: who has file transfer, and the quotas and rates). No release before 0.2.28 reads that key, 0.2.27 included (its reader answers `settings: unknown key 'file_transfer'`, the console falls back to its defaults and the commands -that write the file fail), so **every target but `0.2.28` removes it** -(0.2.28 reads it, as this release does). With the settings +that write the file fail), so **every target but `0.2.29` and `0.2.28` removes it** +(0.2.28 and 0.2.29 read it, as this release does). With the settings set, `--apply` takes a snapshot first, removes the key, keeps every other setting and needs no `--yes`; the dry run lists the removal as a step of its own with what it held. It ends with a note: until the older release is installed, run no `tacctl console file-transfer` that sets something (it writes the key again; run the rollback again if one was run), and the -snapshot holds the 0.2.29 state, which only 0.2.29 restores. The settings are +snapshot holds the 0.2.30 state, which only 0.2.30 restores. The settings are kept nowhere else: **set them again after the upgrade.** -The target `0.2.28` converts **nothing**. 0.2.28 reads every file this +The target `0.2.29` converts **nothing**. 0.2.29 reads every file this release writes, so the rollback removes no key and no field, takes no snapshot, needs no `--yes` and leaves every file alone: the file transfer settings, the limits of the stored reports, the chassis members of the pull records, the reports in the users' homes, the per-tier sudoers drop-in and -everything else stay. It still refuses while a device's apply is not settled, -and it ends with `tacctl upgrade --branch 0.2.28`, with no closing note. What +every user, whatever the name, stay. It still refuses while a device's apply +is not settled, and it ends with `tacctl upgrade --branch 0.2.29`, with no +closing note. What this release changed outside the stored files is 0.2.29's +to undo or keep: after that upgrade `user add` and `user rename` take a new +name that starts with a digit, `-` or `_` again; `device config plan`, +`device reports export` and `device support-bundle` check the path as root +again, so in a home on an NFS `root_squash` export that others may not +search they refuse it with `cannot be resolved (Permission denied)` and the +sentence about `~` and variables; and a file uploaded with `scp -p` is +created 0644 (0600 after the umask) and gets the mode of its source only +from the permissions sent after the data. What was done in between keeps its +name and its mode. + +The target `0.2.28` converts **nothing** either. 0.2.28 reads every file +0.2.29 and this release write, so the rollback removes no key and no field, +takes no snapshot, needs no `--yes` and leaves every file alone, and it ends +with `tacctl upgrade --branch 0.2.28`, with no closing note. What 0.2.29 and this release changed outside the stored files is 0.2.28's to undo or keep: after that upgrade a file uploaded through the console is 0600 again (0644 -less the umask) whatever mode the client asks for; the files uploaded in -between keep their mode. +less the umask) whatever mode the client asks for, and `user add` and `user +rename` take a new name that starts with a digit, `-` or `_` again; the files +uploaded and the users added in between keep their mode and their name. The target `0.2.27` converts nothing but the file transfer settings above. -0.2.27 reads every file 0.2.28 and this release write but that one setting, +0.2.27 reads every file 0.2.28, 0.2.29 and this release write but that one setting, so with the file transfer settings unset the rollback removes no key and no field, takes no snapshot, needs no `--yes` and leaves every file alone. The limits of the stored reports, the chassis @@ -273,20 +289,20 @@ included), the marker `/var/lib/tacctl/pdf-tools-offered` with its packages, the per-tier sudoers drop-in, the break-glass firewall and the other settings 0.2.27 knows all stay. It still refuses while a device's apply is not settled, and it ends with `tacctl upgrade --branch 0.2.27`. What 0.2.28 -and this release changed outside the stored files is 0.2.27's to undo or +to 0.2.29 and this release changed outside the stored files is 0.2.27's to undo or keep: after the rollback the support bundle of a Cisco IOS device starts its identity lines with the tail of a long command's echo again; bundles made in between stay as they were made. The target `0.2.26` converts **nothing but the file transfer settings** -above. 0.2.27, 0.2.28 and this release changed no other stored file 0.2.26 reads +above. 0.2.27 to 0.2.29 and this release changed no other stored file 0.2.26 reads strictly, so with those settings unset the rollback removes no key and no field, takes no snapshot, needs no `--yes` and leaves every file alone. The limits of the stored reports, the chassis members of the pull records, every report in the users' homes, the per-tier sudoers drop-in, the break-glass firewall and the other settings 0.2.26 knows all stay. It still refuses while a device's apply is not settled, and it ends with `tacctl upgrade --branch -0.2.26`. What 0.2.27, 0.2.28 and this release changed outside the stored files is +0.2.26`. What 0.2.27 to 0.2.29 and this release changed outside the stored files is 0.2.26's to undo or keep: after the rollback a row of `show switch` with a blank version column is not read again, and the reports of a user below the operator tier hold the model, serial number and release again, as in 0.2.26. @@ -304,7 +320,7 @@ rename it before a rollback to 0.2.26 or older. The target `0.2.25` removes the **limits of the stored reports** and converts nothing else but the file transfer settings above. 0.2.25 reads every file -0.2.26 to 0.2.28 and this release write but those limits, so the rollback removes `reports.max_size` and `reports.max_count` from +0.2.26 to 0.2.29 and this release write but those limits, so the rollback removes `reports.max_size` and `reports.max_count` from `tacctl.yaml` and the users' own `reports_max_size` and `reports_max_count` from `store.yaml` (0.2.25 refuses both: its `config validate` reports the keys, its `backup restore` refuses a snapshot that has them, and every store @@ -312,8 +328,8 @@ command fails on the fields). - With none of them set (and no file transfer settings), it converts nothing, takes no snapshot and needs no `--yes`. With a setting or a limit it takes - a snapshot first, and says that the snapshot holds the 0.2.29 state and is - to be restored with 0.2.29 only, + a snapshot first, and says that the snapshot holds the 0.2.30 state and is + to be restored with 0.2.30 only, and says what 0.2.25's restore refuses: a `tacctl.yaml` with a key it does not know (a setting was removed), a `store.yaml` with a field it does not know (only a user's own limit was), or both. @@ -326,7 +342,7 @@ command fails on the fields). or `max-count `); `backup recover` does not bring them back. - It puts back the per-tier sudoers drop-in 0.2.25 wrote (this release's without the rows of `device reports`) when the file is exactly the text - 0.2.26 to 0.2.28 and this release write: the dry run shows the step, `--apply` writes it after + 0.2.26 to 0.2.29 and this release write: the dry run shows the step, `--apply` writes it after `visudo -cf`, and a file `tacctl` did not write is left. - **What stays.** The chassis `members` of the pull records (0.2.25 ignores the key) and every report in the users' homes. The reports are the users' @@ -350,11 +366,11 @@ master prints its own label is rolled back again, as in 0.2.24. The target `0.2.23` removes the limits as above, and the one key 0.2.24 added to the stored files, the setting of the break-glass firewall: after a snapshot, when the setting is set, together with the nftables table, its rules file and -its boot unit (every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25` and `0.2.24` does; the nftables +its boot unit (every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25` and `0.2.24` does; the nftables package stays). With the key unset, no firewall file and no limit it takes no snapshot and needs no `--yes`. It also puts back 0.2.23's sudoers drop-in, without the operator's `log failures *`, when the file is exactly the text -0.2.24 and 0.2.25 wrote, or the one 0.2.26 to 0.2.28 and this release write. +0.2.24 and 0.2.25 wrote, or the one 0.2.26 to 0.2.29 and this release write. > **A hold that stands stays, without the firewall.** The older release's > server completes the TCP handshake of the held address again, so a device @@ -394,8 +410,8 @@ you add `--yes`: | The dry run warns of | What happens after the rollback | What to do first | |---|---|---| -| Users who log in to the server and lack its scope (every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`, `0.2.22` and `0.2.21`) | The plan adds the scope of the server's own login (`tacctl`) to the scopes of each, and names them, because an older release answers that login only for users who have it. A warning, so `--apply` needs `--yes`. | Nothing: it is part of the rollback | -| Users with an email address, or SNMPv3 users beyond one per level (every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24` and `0.2.23`) | They are removed, and the rollback keeps the snapshot that holds them | After the upgrade, `tacctl backup recover ` (§4.3) | +| Users who log in to the server and lack its scope (every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`, `0.2.22` and `0.2.21`) | The plan adds the scope of the server's own login (`tacctl`) to the scopes of each, and names them, because an older release answers that login only for users who have it. A warning, so `--apply` needs `--yes`. | Nothing: it is part of the rollback | +| Users with an email address, or SNMPv3 users beyond one per level (every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24` and `0.2.23`) | They are removed, and the rollback keeps the snapshot that holds them | After the upgrade, `tacctl backup recover ` (§4.3) | | Users with a limit of their own for the stored reports (every target before `0.2.26`) | The limits are removed (`--apply` needs `--yes`), and the snapshot holds them. The dry run names each user with the values; the audit line names the users, never a value | After the upgrade, set them again with `tacctl user reports-limit` (`backup recover` does not bring them back) | | Users who must change their password | The requirement is removed. Once the older release renders, those users (superusers aside) can log in to the devices with the password they were to change. | Have them change it, or keep this release | | Scopes with a strict Junos management filter | The mode is removed. The older release plans the `ssh-only` filter, which accepts by default again. | Keep this release, or leave those scopes' filters out of the older release's plans | @@ -404,7 +420,7 @@ you add `--yes`: Without a warning, the rollback also removes the console's colour setting and the per-user system-shell and password-cache choices, and writes a -`list-max` that never asks as 1000. Every target but `0.2.28` removes the file transfer +`list-max` that never asks as 1000. Every target but `0.2.29` and `0.2.28` removes the file transfer settings (see above), with a snapshot first and no `--yes`. > **Until the older release is installed,** do not run @@ -446,7 +462,7 @@ Every step, per target, is in the repository's | Remove the kept copy | `tacctl backup unkeep ` | Superuser | | Put back only email addresses or SNMPv3 users | `tacctl backup recover [--only email,snmp-users]` | Superuser | | Find the snapshot before a change | `journalctl -t tacctl \| grep 'cmd end'` | Superuser | -| Prepare the release before this one (dry run) | `tacctl rollback 0.2.28` | Superuser | +| Prepare the release before this one (dry run) | `tacctl rollback 0.2.29` | Superuser | --- diff --git a/site/break-glass.md b/site/break-glass.md index b163d5a7..66ecd3cc 100644 --- a/site/break-glass.md +++ b/site/break-glass.md @@ -9,7 +9,7 @@ doctype: how-to # Break Glass -*Local emergency accounts, and holding a device or host back from the server · Checked against tacctl 0.2.29* +*Local emergency accounts, and holding a device or host back from the server · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-break-glass.pdf){: .pdf-link } diff --git a/site/command-reference-map.md b/site/command-reference-map.md index 49c0ead4..e1834fb1 100644 --- a/site/command-reference-map.md +++ b/site/command-reference-map.md @@ -9,7 +9,7 @@ doctype: reference # Command Reference Map -*From each tacctl command family to its reference page and the task page that uses it · Checked against tacctl 0.2.29* +*From each tacctl command family to its reference page and the task page that uses it · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-command-reference-map.pdf){: .pdf-link } @@ -41,7 +41,7 @@ both. | `tacctl emergency` | Emergency lockdown, devices and enrolled hosts | [Emergency commands](https://github.com/rett/tacctl/blob/master/docs/cli/emergency.md) | [Emergency Lockdown](emergency-lockdown.md) | | `tacctl log` | Authentication logs, failures, accounting, with filters by time, user, device and kind, and `--json` | [Maintenance commands](https://github.com/rett/tacctl/blob/master/docs/cli/maintenance.md) | [Day-to-Day Device Operations](day-to-day-device-operations.md) §1.4, [Superuser Daily Operations](superuser-daily-operations.md) §9, [Audit and Compliance](audit-and-compliance.md) §1, [Troubleshooting](troubleshooting.md) | | `tacctl backup` | Snapshots, diff, restore (also of a snapshot that holds a user with a period), keep, unkeep, recover | [Maintenance commands](https://github.com/rett/tacctl/blob/master/docs/cli/maintenance.md) | [Backups and Undo](backups-and-undo.md) §4.4 | -| `tacctl upgrade`, `rollback` | Updating tacctl, which renames users whose name has a period; preparing the state for an earlier release (`rollback 0.2.28` is the release before); the upgrade offers the PDF tools of the device reports, once | [Upgrading](https://github.com/rett/tacctl/blob/master/docs/install/upgrading.md) | [Access Lifecycle](access-lifecycle.md) §2, [Backups and Undo](backups-and-undo.md) §5 | +| `tacctl upgrade`, `rollback` | Updating tacctl, which renames users whose name has a period; preparing the state for an earlier release (`rollback 0.2.29` is the release before); the upgrade offers the PDF tools of the device reports, once | [Upgrading](https://github.com/rett/tacctl/blob/master/docs/install/upgrading.md) | [Access Lifecycle](access-lifecycle.md) §2, [Backups and Undo](backups-and-undo.md) §5 | | `tacctl backend`, `store` | Backends and the store | [Maintenance commands](https://github.com/rett/tacctl/blob/master/docs/cli/maintenance.md) | Out of scope for this documentation | | `tacctl config` | Settings (including the server's timing scale, `config devices timeout-scale`, the SNMP defaults of `config snmp`, the break-glass firewall and the limits of the stored reports, `config reports`) and the device configuration walkthroughs | [Config commands](https://github.com/rett/tacctl/blob/master/docs/cli/config.md), [tacctl.yaml settings](https://github.com/rett/tacctl/blob/master/docs/cli/tunables.md) | [Vendor Notes](vendor-notes.md), [Superuser Daily Operations](superuser-daily-operations.md) §4.9, §4.10, [Break Glass](break-glass.md) §2.1 | | `tacctl server` | This server's own settings: an overview, its console name, the address devices and hosts reach it at, listeners, the metrics exporter | [Server commands](https://github.com/rett/tacctl/blob/master/docs/cli/server.md) | [Superuser Daily Operations](superuser-daily-operations.md) §11 | diff --git a/site/concepts.md b/site/concepts.md index 432a8ba2..1284bb3b 100644 --- a/site/concepts.md +++ b/site/concepts.md @@ -9,7 +9,7 @@ doctype: explanation # Concepts -*Users, groups, scopes and tiers, and the other words tacctl uses · Checked against tacctl 0.2.29* +*Users, groups, scopes and tiers, and the other words tacctl uses · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-concepts.pdf){: .pdf-link } diff --git a/site/connecting-to-devices.md b/site/connecting-to-devices.md index 05fc1d1b..5d4c316c 100644 --- a/site/connecting-to-devices.md +++ b/site/connecting-to-devices.md @@ -9,7 +9,7 @@ doctype: how-to # Connecting to Devices -*tacctl ssh by name, plain ssh with pinned keys, and what to do when a connection is refused · Checked against tacctl 0.2.29* +*tacctl ssh by name, plain ssh with pinned keys, and what to do when a connection is refused · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-connecting-to-devices.pdf){: .pdf-link } diff --git a/site/day-to-day-device-operations.md b/site/day-to-day-device-operations.md index 2b7d2db1..e03b72ba 100644 --- a/site/day-to-day-device-operations.md +++ b/site/day-to-day-device-operations.md @@ -9,7 +9,7 @@ doctype: how-to # Day-to-Day Device Operations -*A console-first guide for operators and engineers · Checked against tacctl 0.2.29* +*A console-first guide for operators and engineers · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-day-to-day-device-operations.pdf){: .pdf-link } @@ -240,8 +240,8 @@ account`. Ask a superuser, or use `export`, which prints a report or writes it inside the home. `scp -O` and `rsync` are still refused ([Getting Started](getting-started.md) §1.4). -A user whose name has upper case letters or is longer than 32 characters has -no Linux account on the server, and so no home for a report: `generate` then +A user whose name has upper case letters, is longer than 32 characters or +starts with a digit or `-` has no Linux account on the server, and so no home for a report: `generate` then refuses and stores nothing, and `list`, `show`, `export`, `rename`, `remove` and `prune` say the same. `--stdout` still prints, and a superuser's `tacctl user rename` gives the user a name that can be an account. diff --git a/site/emergency-lockdown.md b/site/emergency-lockdown.md index c83ee535..f48d95e5 100644 --- a/site/emergency-lockdown.md +++ b/site/emergency-lockdown.md @@ -9,7 +9,7 @@ doctype: how-to # Emergency Lockdown -*Refusing the logins of chosen groups on a scope, and lifting it again · Checked against tacctl 0.2.29* +*Refusing the logins of chosen groups on a scope, and lifting it again · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-emergency-lockdown.pdf){: .pdf-link } diff --git a/site/engineer-guide-device-changes.md b/site/engineer-guide-device-changes.md index 36ece10d..64726ed3 100644 --- a/site/engineer-guide-device-changes.md +++ b/site/engineer-guide-device-changes.md @@ -9,7 +9,7 @@ doctype: how-to # Engineer Guide: Device Changes -*Register, compare, plan and apply device AAA configuration · Checked against tacctl 0.2.29* +*Register, compare, plan and apply device AAA configuration · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-engineer-guide-device-changes.pdf){: .pdf-link } @@ -443,7 +443,11 @@ does, before tacctl sees the word), and a path outside the home, one that leaves it through `..` or a link, an empty path and the home itself are refused with exit status 2 and the sentence `tacctl does not expand ~ or variables; name a path inside your home, relative to the current directory`, -before a device is read. The files are made as you (0600, the directory 0700) +before a device is read. The check of the path runs as you, so it works in a +home on an NFS `root_squash` export that others may not search; a path that +cannot be resolved (permission denied, a link that leads nowhere) is refused +with the cause and the path, and without that sentence about `~`. The files +are made as you (0600, the directory 0700) and never through a link; an existing file needs `--force`. The `out=` field of the audit line holds the full path. diff --git a/site/exit-codes.md b/site/exit-codes.md index 2c15726d..c439887f 100644 --- a/site/exit-codes.md +++ b/site/exit-codes.md @@ -9,7 +9,7 @@ doctype: reference # Exit Codes -*What each tacctl exit status means on shift and in scripts · Checked against tacctl 0.2.29* +*What each tacctl exit status means on shift and in scripts · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-exit-codes.pdf){: .pdf-link } diff --git a/site/getting-started.md b/site/getting-started.md index 363d978c..00496817 100644 --- a/site/getting-started.md +++ b/site/getting-started.md @@ -9,7 +9,7 @@ doctype: tutorial # Getting Started -*Your first login, the console and the shell, and where to go next · Checked against tacctl 0.2.29* +*Your first login, the console and the shell, and where to go next · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-getting-started.pdf){: .pdf-link } @@ -165,8 +165,13 @@ scp notes.txt alice@tacacs.example.net: the mode your client asks for, without the group and other bits, so a script uploaded at 0755 is 0700 and keeps its execute bit, and a file at 0644 is 0600. A client that asks no mode gets 0600. A new directory is - 0700, whatever the client asks. `scp -p` keeps the mode of the source - (0755). Set another mode afterwards with `chmod` in `sftp`. A file that + 0700, whatever the client asks. `scp -p` sends the mode together with the + times in the request that opens the file, so the file has its mode from the + start (a script at 0755 is created 0700, and an upload that is interrupted + keeps that mode), and the mode and times the client sets at the end are + applied as given: the file ends with the mode of its source (0755). A + request without a mode, or one that asks for no permission bit, still gives + 0600. Set another mode afterwards with `chmod` in `sftp`. A file that already exists keeps its mode. - **A transfer lasts as long as the connection.** The idle timeout of the console does not apply to it. A listing is in the order of the file system, diff --git a/site/glossary.md b/site/glossary.md index ef4111d7..0a1fe36c 100644 --- a/site/glossary.md +++ b/site/glossary.md @@ -9,7 +9,7 @@ doctype: explanation # Glossary -*The words tacctl and this documentation use, in one list · Checked against tacctl 0.2.29* +*The words tacctl and this documentation use, in one list · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-glossary.pdf){: .pdf-link } diff --git a/site/incident-response-runbooks.md b/site/incident-response-runbooks.md index 776d490a..63be069d 100644 --- a/site/incident-response-runbooks.md +++ b/site/incident-response-runbooks.md @@ -9,7 +9,7 @@ doctype: how-to # Incident Response Runbooks -*Step-by-step security and availability runbooks · Checked against tacctl 0.2.29* +*Step-by-step security and availability runbooks · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-incident-response-runbooks.pdf){: .pdf-link } diff --git a/site/index.md b/site/index.md index 2e4b77b9..4306dc60 100644 --- a/site/index.md +++ b/site/index.md @@ -8,7 +8,7 @@ doctype: reference # tacctl documentation -*The tacctl operations documentation: where to start, by role and by situation · Checked against tacctl 0.2.29* +*The tacctl operations documentation: where to start, by role and by situation · Checked against tacctl 0.2.30* [Printable PDF](pdf/tacctl-home.pdf){: .pdf-link } diff --git a/site/linux-host-operations.md b/site/linux-host-operations.md index 79b13cab..7268d8b7 100644 --- a/site/linux-host-operations.md +++ b/site/linux-host-operations.md @@ -9,7 +9,7 @@ doctype: how-to # Linux Host Operations -*Keeping enrolled Linux hosts in step · Checked against tacctl 0.2.29* +*Keeping enrolled Linux hosts in step · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-linux-host-operations.pdf){: .pdf-link } @@ -86,7 +86,7 @@ What a sync does: | User state | Effect on the host | |---|---| -| New in the host's scope | Account created (with a UID consistent across hosts). A user name with upper case letters or more than 32 characters (from an earlier release), or that starts with a digit or `-`, is skipped with a warning: it is no Linux account name, and `tacctl user rename` fixes it. | +| New in the host's scope | Account created (with a UID consistent across hosts). A user name with upper case letters or more than 32 characters (from an earlier release), or that starts with a digit or `-` (a new name cannot), is skipped with a warning: it is no Linux account name, and `tacctl user rename` fixes it. | | Disabled | Account expired: no login, ssh keys included. Files kept. | | Must change the password | As disabled, on every host but the tacctl server, until the user changes it there; the next sync opens it again. `host show` counts it with the disabled accounts. | | Re-enabled | Restored | diff --git a/site/operator-field-guide.md b/site/operator-field-guide.md index 4c76a1fb..74e9eb26 100644 --- a/site/operator-field-guide.md +++ b/site/operator-field-guide.md @@ -9,7 +9,7 @@ doctype: how-to # Operator Field Guide -*For NOC, help-desk and network support staff · Checked against tacctl 0.2.29* +*For NOC, help-desk and network support staff · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-operator-field-guide.pdf){: .pdf-link } diff --git a/site/quick-reference.md b/site/quick-reference.md index 7e67e9fd..aa300778 100644 --- a/site/quick-reference.md +++ b/site/quick-reference.md @@ -9,7 +9,7 @@ doctype: reference # Quick Reference -*The most common tacctl commands on one card · Checked against tacctl 0.2.29* +*The most common tacctl commands on one card · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-quick-reference.pdf){: .pdf-link } @@ -145,7 +145,7 @@ usage. In the console and `tacctl shell`, `?` shows help. | Diff / restore | `tacctl backup diff [ts]` · `backup restore ` | S | | Keep / unkeep a snapshot | `tacctl backup keep ` · `backup unkeep ` | S | | Put back email or SNMPv3 users after a rollback | `tacctl backup recover [--only email,snmp-users]` | S | -| Prepare the release before this one (dry run) | `tacctl rollback 0.2.28` | S | +| Prepare the release before this one (dry run) | `tacctl rollback 0.2.29` | S | | Audit trail | `journalctl -t tacctl -t tacctl-console` | — | ## 9. Exit codes diff --git a/site/superuser-daily-operations.md b/site/superuser-daily-operations.md index 3326b4b0..fe881427 100644 --- a/site/superuser-daily-operations.md +++ b/site/superuser-daily-operations.md @@ -9,7 +9,7 @@ doctype: how-to # Superuser Daily Operations -*Day-to-day operations for tacctl superusers · Checked against tacctl 0.2.29* +*Day-to-day operations for tacctl superusers · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-superuser-daily-operations.pdf){: .pdf-link } @@ -645,8 +645,9 @@ every user can log in to the server and its console unless disabled than 32 characters (a name from an earlier release), or starts with a digit or `-`, is no Linux account name, so the sync skips it with a warning and that user has no console login until `tacctl user rename` gives it a name -that can be one (`config validate` lists the first two under `Names:`). Local accounts that are not -tacctl users keep their own shells. +that can be one (`config validate` lists all three under `Names:`; a new +name cannot start with a digit or `-`). Local accounts that are not tacctl +users keep their own shells. ```bash tacctl console show # settings, each user's shell, system-shell and file-transfer access @@ -906,6 +907,24 @@ sudo tacctl config render --dry-run --out ~/render-check only, never through a link. A script that passed `--out ~/x` quoted, so that `~` reached tacctl unexpanded, gets the refusal; before, `device support-bundle --out ~/x` made a folder literally named `~`. +- **A home on an NFS export with `root_squash` (0.2.30).** There root is + mapped to an unprivileged account, and a home that others may not search + (0700, 0750) is out of its reach. The three commands that write as you + (`device config plan`, `device reports export`, `device support-bundle`) + check the path as you too, so such a home is no obstacle to them. The two + commands that write as root (`config render --dry-run`, `config linux + script` and `remove-script`) check the path as root, so a home that others + may not search is refused by the check itself, with ` '' cannot + be resolved (Permission denied)`; that refusal gives the cause the system + gives and the path, and does not repeat the sentence about `~` and + variables. In a home that others may search the check passes and the two + commands cannot write: they write nothing, leave no half-made file (a file + of that name that was there stays as it was), say `Permission denied` with + the path (`Cannot write : Permission denied`, `Cannot create + '': Permission denied` or `install: cannot create regular file + '': Permission denied`) and exit with status 1. Write the file + somewhere that is not root-squashed, such as the local disk of the host, + and copy it to your home as yourself. --- diff --git a/site/troubleshooting.md b/site/troubleshooting.md index bb902786..ec3fa06c 100644 --- a/site/troubleshooting.md +++ b/site/troubleshooting.md @@ -9,7 +9,7 @@ doctype: how-to # Troubleshooting -*Symptom-first fixes for login and device problems · Checked against tacctl 0.2.29* +*Symptom-first fixes for login and device problems · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-troubleshooting.pdf){: .pdf-link } @@ -154,6 +154,7 @@ retry, run `tacctl log tail 50`, then set the log level back. | `A password change is required of ''` | Only `passwd`, `version` and `help` run until you change your password: `tacctl passwd` | | A user cannot log in to the tacctl server or its console | Every user can, unless disabled or in a group of tier none (`tacctl user show `). The account exists after the next `tacctl host sync `. A name with upper case letters or more than 32 characters (from an earlier release), or that starts with a digit or `-`, is no Linux account name and gets none: `tacctl user rename `. | | `Username '' is 33 characters; a user name is at most 32 (the longest a Linux account name can be).` | `user add` or the new name of `user rename` is longer than 32 characters. Nothing was changed; choose a shorter name ([Access Lifecycle](access-lifecycle.md) §2). | +| `Username '1alice' must start with a letter (a to z): every new user gets a Linux account, and a name that starts with a digit or '-' is no account name (a new name does not start with '_' either).` | `user add` or the new name of `user rename` was given a first character that is not a lower-case letter. Nothing was changed; choose a name that starts with a letter, `a` to `z`. A user that already exists with such a name keeps working; `tacctl config validate` lists it under `Names:` ([Access Lifecycle](access-lifecycle.md) §2). | | `Username must contain only letters, numbers, underscores and hyphens (a period cannot be part of a Linux account name).` | A `user` verb, `passwd` or `config linux uid` was given a name with a period, whether the user exists or not. Use `-` or `_`. | | `user 'alice.smith': invalid name (a period cannot be part of a Linux account name; 'tacctl upgrade' renames such a user)` on every write | The store still holds a user with a period (an upgrade that stopped, or a restored snapshot of 0.2.25 or earlier). Run `tacctl upgrade`, which renames the user; every write fails until then ([Access Lifecycle](access-lifecycle.md) §2). | | `The upgrade's rename of user alice.smith to alice_smith is not finished: run 'tacctl upgrade' first. Nothing was changed.` | An upgrade stopped after it renamed the user in the store. `tacctl upgrade` finishes the rename; `user add`, `user remove`, `user rename`, `store import` and the restore of an old-style backup refuse until it has. | diff --git a/site/vendor-notes.md b/site/vendor-notes.md index 94b9b175..292cc4d4 100644 --- a/site/vendor-notes.md +++ b/site/vendor-notes.md @@ -9,7 +9,7 @@ doctype: explanation # Vendor Notes -*What differs between Cisco, Junos and WTI for operations staff · Checked against tacctl 0.2.29* +*What differs between Cisco, Junos and WTI for operations staff · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-vendor-notes.pdf){: .pdf-link } diff --git a/site/whats-new-for-operators.md b/site/whats-new-for-operators.md index 683cfe7f..f9425e77 100644 --- a/site/whats-new-for-operators.md +++ b/site/whats-new-for-operators.md @@ -10,7 +10,7 @@ commands: historical # What's New for Operators -*The changes in each tacctl release that people on shift will notice · Checked against tacctl 0.2.29* +*The changes in each tacctl release that people on shift will notice · Checked against tacctl 0.2.30* [Printable PDF](../pdf/tacctl-whats-new-for-operators.pdf){: .pdf-link } @@ -24,7 +24,34 @@ first. --- -## 1. tacctl 0.2.29 +## 1. tacctl 0.2.30 + +Released 2026-11-10 · +[Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.30.md) + +| Change | What it means on shift | Page | +|---|---|---| +| **A new user name starts with a letter** | `user add` and the new name of `user rename` take a lower-case letter, then lower-case letters, digits, `_` and `-`, at most 32 characters. A first character that is a digit, `-` or `_` is refused (`Username '1alice' must start with a letter (a to z) ...`) and nothing is changed, so that every new user has a Linux account. The first check that fails is the answer, and a name with upper case is told its lower-case spelling only when that spelling is accepted. Users that exist as `9dave`, `_svc` or `-x` keep working | [Access Lifecycle](access-lifecycle.md) §2, [Troubleshooting](troubleshooting.md) §8 | +| **`config validate` and `--fix-names` follow the rule** | `config validate` warns once per user whose name starts with a digit or `-` (no Linux account) under `Names:` and names `tacctl user rename `; a name that starts with `_` has an account and gets no warning. `--fix-names` never offers a rename that `user rename` would refuse: for `1Alice` or a name over 32 characters it offers nothing, and the run exits 0 | [Access Lifecycle](access-lifecycle.md) §2 | +| **A home on an NFS `root_squash` export** | `device config plan --out`, `device reports export --out` and `device support-bundle` check the path as you, so they work in a home that others may not search. A `cannot be resolved` refusal gives the cause and the path and no longer says to spell the path differently (the `~` hint). `config render --dry-run` and `config linux script` and `remove-script` still check the path as root: write the file on the local disk of the host and copy it to your home as yourself | [Superuser Daily Operations](superuser-daily-operations.md) §11.4, [Engineer Guide](engineer-guide-device-changes.md) §4 | +| **`scp -p` creates the file with its mode** | The console reads the permissions of the open request, so a script uploaded at 0755 is created 0700 (the umask is 077) and not 0600, and an interrupted upload leaves that mode. The mode and times set at the end are applied as given: the file still ends with the mode of its source. A request without permissions still gives 0600 | [Getting Started](getting-started.md) §1.4 | +| `tacctl rollback 0.2.29` | The release before this one is a target (sixteen in all). It converts nothing: no key or field removed, no snapshot, no `--yes`, no closing note | [Backups and Undo](backups-and-undo.md) §5 | + +> **Before upgrading from 0.2.29:** +> +> - `tacctl upgrade` converts nothing in this release. A user whose name +> starts with a digit or `-` is carried unchanged; `tacctl config validate` +> lists it, and `tacctl user rename ` gives it an +> account. +> - After `tacctl rollback 0.2.29` and the install of 0.2.29, `user add` and +> `user rename` take a new name that starts with a digit, `-` or `_` again, +> the three commands above check the path as root again, and a file +> uploaded with `scp -p` is created 0600 again; what was done in between +> keeps its name and its mode. + +--- + +## 2. tacctl 0.2.29 Released 2026-11-09 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.29.md) @@ -48,7 +75,7 @@ Released 2026-11-09 · --- -## 2. tacctl 0.2.28 +## 3. tacctl 0.2.28 Released 2026-11-09 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.28.md) @@ -88,7 +115,7 @@ Released 2026-11-09 · --- -## 3. tacctl 0.2.27 +## 4. tacctl 0.2.27 Released 2026-11-09 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.27.md) @@ -126,7 +153,7 @@ Released 2026-11-09 · --- -## 4. tacctl 0.2.26 +## 5. tacctl 0.2.26 Released 2026-11-06 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.26.md) @@ -175,7 +202,7 @@ Released 2026-11-06 · --- -## 5. tacctl 0.2.25 +## 6. tacctl 0.2.25 Released 2026-11-05 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.25.md) @@ -202,7 +229,7 @@ Released 2026-11-05 · --- -## 6. tacctl 0.2.24 +## 7. tacctl 0.2.24 Released 2026-11-05 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.24.md) @@ -245,7 +272,7 @@ Released 2026-11-05 · > device whose `single-connection` was removed, 0.2.23's `diff` and `plan` > show the line as missing, and applying that plan types it again. -## 7. tacctl 0.2.23 +## 8. tacctl 0.2.23 Released 2026-10-31 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.23.md) @@ -282,7 +309,7 @@ Released 2026-10-31 · > again. The rollback is refused while an emergency lockdown has enrolled > hosts: lift it and sync the hosts first. -## 8. tacctl 0.2.22 +## 9. tacctl 0.2.22 Released 2026-10-29 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.22.md) @@ -343,7 +370,7 @@ sub-commands, and the one-letter form of `--yes` is refused: > date until its first render writes its own comment, which restarts > tacquito once; the rollback itself restarts nothing. -## 9. tacctl 0.2.21 +## 10. tacctl 0.2.21 Released 2026-10-28 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.21.md) @@ -364,7 +391,7 @@ Released 2026-10-28 · > `config validate` stop with one line. **After it,** check the line about > the machine's own login, and run `tacctl host sync ` as before. -## 10. tacctl 0.2.20 +## 11. tacctl 0.2.20 Released 2026-10-28 · [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.20.md) @@ -397,7 +424,7 @@ sub-commands: > and not before. No existing user must change their password until a > superuser says so. -## 11. tacctl 0.2.19 +## 12. tacctl 0.2.19 [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.19.md) @@ -410,7 +437,7 @@ sub-commands: | Host names may contain dots | `tacctl host rename web1 web1.example.net` works | [Linux Host Operations](linux-host-operations.md) | | Unknown commands answered first | A mistyped command is answered before `sudo` asks for a password | — | -## 12. tacctl 0.2.18 +## 13. tacctl 0.2.18 [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.18.md) @@ -429,7 +456,7 @@ you may have meant (`tacctl enroll` suggests `device enroll` and `host enroll`). Every tier can run `device notice list` and `device client-config`. -## 13. tacctl 0.2.17 +## 14. tacctl 0.2.17 [Full release notes](https://github.com/rett/tacctl/blob/master/docs/release-notes-0.2.17.md) @@ -445,7 +472,7 @@ you may have meant (`tacctl enroll` suggests `device enroll` and --- -## 14. Older releases +## 15. Older releases Releases 0.2.0 to 0.2.16 are listed on the [releases page](https://github.com/rett/tacctl/releases), and every change is