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
|
434 |
richard |
12 |
User_Alias ADMWEB=apache # compte lié à l'interface de gestion
|
1 |
root |
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
|
434 |
richard |
17 |
Cmnd_Alias BYPASS=/usr/local/sbin/alcasar-bypass.sh # contournement du système d'authentification
|
1 |
root |
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
|
142 |
richard |
22 |
Cmnd_Alias BL=/usr/local/sbin/alcasar-bl.sh,/usr/local/sbin/alcasar-havp.sh # pour gérer le filtrage WEB (blacklists, whitelist et antivirus)
|
612 |
richard |
23 |
Cmnd_Alias NF=/usr/local/sbin/alcasar-nf.sh,/usr/local/bin/alcasar-iptables.sh # pour gérer le filtrage réseau
|
1 |
root |
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)
|
434 |
richard |
26 |
Cmnd_Alias SERVICE=/sbin/service,/usr/bin/killall,/sbin/chkconfig # pour gérer les services
|
648 |
richard |
27 |
Cmnd_Alias SSL=/usr/bin/openssl # pour récupérer les info des certificats
|
1 |
root |
28 |
|
|
|
29 |
# Defaults specification
|
|
|
30 |
# Defaults syslog=auth
|
|
|
31 |
|
|
|
32 |
# Runas alias specification
|
|
|
33 |
|
|
|
34 |
# User privilege specification
|
|
|
35 |
root ALL=(ALL) ALL
|
|
|
36 |
|
|
|
37 |
# Uncomment to allow people in group wheel to run all commands
|
|
|
38 |
# %wheel ALL=(ALL) ALL
|
|
|
39 |
|
|
|
40 |
# Same thing without a password
|
|
|
41 |
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
|
42 |
|
|
|
43 |
# Samples
|
|
|
44 |
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
|
|
|
45 |
# %users localhost=/sbin/shutdown -h now
|
|
|
46 |
|
648 |
richard |
47 |
ADMWEB LAN_ORG=(root) NOPASSWD: NET,GHOST,SQL,BL,NF,EXPORT,RADDB,LOGOUT,UAM,SERVICE,SSL
|
434 |
richard |
48 |
ADMIN LAN_ORG=(root) NOPASSWD: NET,/sbin/poweroff,/sbin/shutdown -h now,/sbin/reboot,URPMI,BYPASS,GHOST,SQL,EXPORT,SERVICE
|
1 |
root |
49 |
|