Simplify passwordless sudo grant lifecycle
This commit is contained in:
1 parent
5bfc8b5cc3
commit
c46f321680
6 files changed
+525
-944
No files matched your search
@@ -1,6 +1,6 @@
|
||||
echo "Remove legacy temporary passwordless sudo grants"
|
||||
|
||||
# This removes current numeric grants, exact legacy username grants, corrupt or
|
||||
# orphaned state, and their known timers. Administrator-authored sudoers files
|
||||
# whose contents do not exactly match Omarchy's generated grammar are preserved.
|
||||
sudo /usr/bin/omarchy-sudo-passwordless __cleanup-all
|
||||
# Migration queues are per-user; the privileged repair is once per machine.
|
||||
if ! /usr/bin/omarchy-sudo-passwordless __migration-complete; then
|
||||
sudo /usr/bin/omarchy-sudo-passwordless __migrate
|
||||
fi
|
||||
Reference in new issue
Block a user