Set up per-user root logging on nixos hosts #303
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On most of the salt-registered hosts, we have the following script in the global
bashrc:Maybe we should consider doing the same on the nixos hosts?
Logging who did what might be cool, but I think we should coordinate it with #138, and use something like
auditdrather than a hacky script setting LOGNAME. Getting prompted with the question is also a bit annoying.Also, we should keep in mind that this is not useful not to uncover malicious admin activity, as we still allow users to log in directly as root, bypassing the userlogin + privesc flow that a bashrc or auditd could pick up. If the point is troubleshooting other problems/accidents, how useful is knowing whodunit?
However, having your own .bash_history to not get other peoples histories messing up your autocomplete is cool, but you can implement that yourself without the need for this system everywhere
See #304