[ale] sudo tricks and hints
Michael H. Warfield
mhw at WittsEnd.com
Thu Aug 14 11:13:14 EDT 2014
On Wed, 2014-08-13 at 18:46 -0400, Narahari 'n' Savitha wrote:
> I am trying to use sudo effectively. The scenario is I have a box where I
> can get super powers for the duration of a script running. It works ok but
> what I am found is that I can put a <userid> in the sudoers file with
> permission to run any script(s) from a given folder. But that requires me
> to mod the sudoers file. Is there any other mechanism that I can get
> granted the superpowers for a brief while and then taken away from me. I
> really don't like tinkering with sudoers file.
Depending on version of sudo, you can drop appropriately formatted files
Make sure the following lines are near the end of /etc/sudoers:
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
Michael H. Warfield (AI4NB) | (770) 978-7061 | mhw at WittsEnd.com
/\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 465 bytes
Desc: This is a digitally signed message part
More information about the Ale