| 1 |
# /etc/sudoers |
| 2 |
# |
| 3 |
# This file MUST be edited with the 'visudo' command as root. |
| 4 |
# |
| 5 |
# See the man page for details on how to write a sudoers file. |
| 6 |
# |
| 7 |
|
| 8 |
# Changing the default settings |
| 9 |
Defaults !root_sudo |
| 10 |
Defaults timestamp_timeout=3 |
| 11 |
|
| 12 |
# Host alias specification |
| 13 |
|
| 14 |
# User alias specification |
| 15 |
User_Alias USERS = username1, username2 |
| 16 |
|
| 17 |
# Cmnd alias specification |
| 18 |
Cmnd_Alias SHUTDOWN = /sbin/shutdown, /sbin/halt, /sbin/reboot |
| 19 |
Cmnd_Alias APT = /usr/bin/aptitude |
| 20 |
|
| 21 |
# User privilege specification |
| 22 |
root ALL=(ALL) ALL |
| 23 |
USERS ALL = APT |
| 24 |
USERS ALL = NOPASSWD: SHUTDOWN |
| 25 |
|