Undo the "sudo" within a script
5997
Run only parts of a script as sudo, entering password only once
7556
How do I sudo a command in a script without being asked for a password?
86292
Is it possible to get the output of only sudo command?
48320
How to recursively remove execute permissions from files without touching folders?
44231
Remove sudo privileges from a user (without deleting the user)
140654
Giving access of a set of commands to a non-root user without sudo
117820
Is it possible to reverse a command in the bash shell?
89652
Lost access to sudo
50436
How to log commands within a "sudo su -"?
138013
How do the internals of sudo work?
3716
How do I add myself back as a sudo user?
122621
Allowing a user to use sudo without a password
11369
How can I `alias sudo !!`?
92250
Is there a "reverse sudo"?
61534
Prompt for sudo password rather than give access error
26770
How to append to a file as sudo?
46919
How does sudo handle $HOME differently since 19.10?