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)
|
1 |
root |
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)
|
434 |
richard |
26 |
Cmnd_Alias SERVICE=/sbin/service,/usr/bin/killall,/sbin/chkconfig # pour gérer les services
|
1 |
root |
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 |
|
434 |
richard |
46 |
ADMWEB LAN_ORG=(root) NOPASSWD: NET,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,SERVICE
|
1 |
root |
48 |
|