1 |
root |
1 |
# sudoers file.
|
|
|
2 |
#
|
|
|
3 |
# This file MUST be edited with the 'visudo' command as root.
|
|
|
4 |
#
|
|
|
5 |
# See the sudoers man page for the details on how to write a sudoers file.
|
|
|
6 |
#
|
|
|
7 |
|
|
|
8 |
# Host alias specification
|
|
|
9 |
Host_Alias LAN_ORG=192.168.182.0/24,localhost #réseau de l'organisme
|
|
|
10 |
# User alias specification
|
|
|
11 |
User_Alias ADMIN=sysadmin # compte d'admin local de l'organisme
|
|
|
12 |
User_Alias ADMOSSI=apache # compte d'admin OSSI (web)
|
|
|
13 |
|
|
|
14 |
# Cmnd alias specification
|
|
|
15 |
Cmnd_Alias NET=/sbin/arping,/sbin/arp,/usr/sbin/arpscan,/usr/sbin/tcpdump # commandes réseau
|
|
|
16 |
Cmnd_Alias URPMI=/usr/sbin/urpmi,/usr/sbin/urpmi.update # gestion des paquetages
|
|
|
17 |
Cmnd_Alias BYPASS=/usr/local/sbin/alcasar-bypass-on.sh,/usr/local/sbin/alcasar-bypass-off.sh # contournement du système d'authentification
|
|
|
18 |
Cmnd_Alias RADDB=/usr/bin/radwho,/usr/sbin/chilli_query # pour la gestion des usagers en ligne
|
|
|
19 |
Cmnd_Alias SQL=/usr/local/sbin/alcasar-mysql.sh # pour exporter la base mysql
|
|
|
20 |
Cmnd_Alias GHOST=/usr/local/bin/alcasar-mondo.sh # pour générer une image iso du serveur
|
|
|
21 |
Cmnd_Alias EXPORT=/usr/local/bin/alcasar-log-export.sh # pour exporter/sauvegarder les fichiers journaux
|
|
|
22 |
Cmnd_Alias BL=/usr/local/sbin/alcasar-bl.sh # pour gérer les blacklists et whitelist
|
|
|
23 |
Cmnd_Alias NF=/usr/local/sbin/alcasar-nf.sh # pour gérer le filtrage réseau
|
|
|
24 |
Cmnd_Alias LOGOUT=/usr/local/sbin/alcasar-logout.sh # pour déconnecter les usagers
|
|
|
25 |
Cmnd_Alias UAM=/usr/local/sbin/alcasar-uamallowed.sh # pour gérer les site de confiance (uamallowed)
|
|
|
26 |
Cmnd_Alias SERVICE=/sbin/service,/usr/bin/killall # pour gérer les site de confiance (uamallowed)
|
|
|
27 |
|
|
|
28 |
# Defaults specification
|
|
|
29 |
# Defaults syslog=auth
|
|
|
30 |
|
|
|
31 |
# Runas alias specification
|
|
|
32 |
|
|
|
33 |
# User privilege specification
|
|
|
34 |
root ALL=(ALL) ALL
|
|
|
35 |
|
|
|
36 |
# Uncomment to allow people in group wheel to run all commands
|
|
|
37 |
# %wheel ALL=(ALL) ALL
|
|
|
38 |
|
|
|
39 |
# Same thing without a password
|
|
|
40 |
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
|
41 |
|
|
|
42 |
# Samples
|
|
|
43 |
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
|
|
|
44 |
# %users localhost=/sbin/shutdown -h now
|
|
|
45 |
|
|
|
46 |
ADMOSSI LAN_ORG=(root) NOPASSWD: NET,BYPASS,GHOST,SQL,BL,NF,EXPORT,RADDB,LOGOUT,UAM,SERVICE
|
|
|
47 |
ADMIN LAN_ORG=(root) NOPASSWD: NET,/sbin/poweroff,/sbin/shutdown -h now,/sbin/reboot,URPMI,BYPASS,GHOST,SQL,EXPORT
|
|
|
48 |
|