Sudoers » History » Version 4
Anonymous, 08/06/2008 11:19 AM
1 | 1 | Anonymous | |
---|---|---|---|
2 | 4 | Anonymous | h1. Sudoers |
3 | 4 | Anonymous | |
4 | 4 | Anonymous | |
5 | 4 | Anonymous | |
6 | 4 | Anonymous | h2. sudo as user _root |
7 | 4 | Anonymous | |
8 | 1 | Anonymous | Allow members of the group "procksi_admin" to sudo to user "root" with their own password as authentication. |
9 | 1 | Anonymous | |
10 | 4 | Anonymous | Append the following to the end of _/etc/sudoers_: |
11 | 4 | Anonymous | <pre> |
12 | 1 | Anonymous | ## Allow members of the group "procksi_admin" to su to any user |
13 | 1 | Anonymous | ## having to authenticate themselves with their own password |
14 | 3 | Anonymous | %procksi_admin localhost,master01=(ALL) ALL |
15 | 4 | Anonymous | </pre> |
16 | 3 | Anonymous | |
17 | 4 | Anonymous | |
18 | 4 | Anonymous | h2. sudo as user _procksi_ |
19 | 4 | Anonymous | |
20 | 3 | Anonymous | Allow members of the group "procksi_dev" to sudo to user "procksi" without entering a password |
21 | 1 | Anonymous | |
22 | 4 | Anonymous | <pre> |
23 | 1 | Anonymous | ## Allow members of the group "procksi_dev" to su to user "procksi" |
24 | 3 | Anonymous | ## without having to authenticate themselves |
25 | 1 | Anonymous | %procksi_dev localhost,master01=(procksi) NOPASSWD:ALL |
26 | 4 | Anonymous | </pre> |
27 | 2 | Anonymous | |
28 | 2 | Anonymous | Usage for instance as: |
29 | 2 | Anonymous | |
30 | 4 | Anonymous | <pre> |
31 | 2 | Anonymous | > sudo -u procksi whoami |
32 | 2 | Anonymous | procksi |
33 | 4 | Anonymous | </pre> |