Sudoers » History » Version 3

Anonymous, 08/06/2008 11:19 AM

1 1 Anonymous
= Sudoers =
2 1 Anonymous
3 3 Anonymous
== sudo as user ''root ==
4 3 Anonymous
Allow members of the group "procksi_admin" to sudo to user "root" with their own password as authentication.
5 1 Anonymous
6 1 Anonymous
Append the following to the end of ''/etc/sudoers'':
7 1 Anonymous
{{{
8 3 Anonymous
## Allow members of the group "procksi_admin" to su to any user
9 3 Anonymous
## having to authenticate themselves with their own password
10 3 Anonymous
%procksi_admin localhost,master01=(ALL)     ALL
11 3 Anonymous
}}}
12 3 Anonymous
13 3 Anonymous
== sudo as user ''procksi'' ==
14 3 Anonymous
Allow members of the group "procksi_dev" to sudo to user "procksi" without entering a password
15 3 Anonymous
16 3 Anonymous
{{{
17 3 Anonymous
## Allow members of the group "procksi_dev" to su to user "procksi"
18 3 Anonymous
## without having to authenticate themselves
19 1 Anonymous
%procksi_dev  localhost,master01=(procksi)  NOPASSWD:ALL
20 2 Anonymous
}}}
21 2 Anonymous
22 2 Anonymous
Usage for instance as:
23 2 Anonymous
24 2 Anonymous
{{{
25 2 Anonymous
> sudo -u procksi whoami
26 2 Anonymous
procksi
27 1 Anonymous
}}}