Show HN: Script to add last sudo commands to sudoers config.
github.com
github.com
I would suggest if you absolutely need non root users to do things manage it with groups. That is one of the reasons groups exist. Don’t use the sudo group as a dumping ground for random commands as if you need to revoke a users permission you have to edit sudo config to lock certain commands down to specific users. What you need is a group. So then if a user needs permission add them to the group, when you need to revoke permissions remove them from the group.