Sudoers » History » Version 2

Anonymous, 03/20/2008 10:31 AM
Clarify sudoing

1 1 Anonymous
= Sudoers =
2 1 Anonymous
3 2 Anonymous
Allow members of the group "procksi_dev" to sudo to user "procksi" without entering a password
4 1 Anonymous
5 1 Anonymous
Append the following to the end of ''/etc/sudoers'':
6 1 Anonymous
{{{
7 2 Anonymous
#Allow members of the group "procksi_dev" to sudo to user "procksi" without password
8 1 Anonymous
%procksi_dev  localhost,master01=(procksi)  NOPASSWD:ALL
9 2 Anonymous
}}}
10 2 Anonymous
11 2 Anonymous
Usage for instance as:
12 2 Anonymous
13 2 Anonymous
{{{
14 2 Anonymous
> sudo -u procksi whoami
15 2 Anonymous
procksi
16 1 Anonymous
}}}