Subversion Repositories ALCASAR

Rev

Rev 2931 | Rev 2965 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
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
1349 richard 9
Host_Alias	LAN_ORG=192.168.182.0/255.255.255.0,localhost		#réseau de l'organisme
1 root 10
# User alias specification
1710 richard 11
User_Alias	ADMIN=sysadmin				# local admin account
2631 rexy 12
User_Alias	ADMWEB=apache				# web server owner
13
User_Alias	SMS=gammu_smsd				# gammu-smsd owner
1 root 14
 
15
# Cmnd alias specification
2956 rexy 16
Cmnd_Alias	NET=/sbin/ip,/sbin/arping,/sbin/arp,/usr/sbin/tcpdump,/usr/local/bin/alcasar-watchdog.sh,/usr/local/bin/alcasar-dhcp.sh,/usr/local/bin/alcasar-dns-local.sh,/usr/local/bin/alcasar-network.sh	# network commands
2931 rexy 17
Cmnd_Alias	URPMI=/usr/sbin/urpmi,/usr/sbin/urpmi.update		# packages managment
2956 rexy 18
Cmnd_Alias	BYPASS=/usr/local/bin/alcasar-bypass.sh				# authentication bypass
2931 rexy 19
Cmnd_Alias	RADDB=/usr/bin/radwho,/usr/sbin/chilli_query		# manage users in command line
2956 rexy 20
Cmnd_Alias	SQL=/usr/local/bin/alcasar-mysql.sh					# export users database
2931 rexy 21
Cmnd_Alias	SYSTEM_BACKUP=/usr/local/bin/alcasar-conf.sh		# create conf backup file
2956 rexy 22
Cmnd_Alias	EXPORT=/usr/local/bin/alcasar-archive.sh			# export/save the log files
2931 rexy 23
Cmnd_Alias	BL=/usr/local/bin/alcasar-bl.sh,/usr/local/bin/alcasar-file-clean.sh,/usr/local/bin/alcasar-url_filter_wl.sh,/usr/local/bin/alcasar-url_filter_bl.sh	# manage the filtering system
24
Cmnd_Alias	NF=/usr/local/bin/alcasar-iptables.sh,/usr/sbin/ipset	# manage the firewall
2956 rexy 25
Cmnd_Alias	LOGOUT=/usr/local/bin/alcasar-logout.sh				# disconnect the users
26
Cmnd_Alias	UAM=/usr/local/bin/alcasar-uamallowed.sh			# manage the trusted websites (uamallowed)
2931 rexy 27
Cmnd_Alias	SERVICE=/usr/bin/systemctl,/usr/sbin/shutdown		# manage the linux services
2956 rexy 28
Cmnd_Alias	GAMMU=/usr/local/bin/alcasar-sms.sh					# manage the SMS subsystem
2931 rexy 29
Cmnd_Alias	SSL=/usr/local/bin/alcasar-importcert.sh,/usr/local/bin/alcasar-letsencrypt.sh,/usr/local/bin/alcasar-https.sh,/usr/local/bin/alcasar-ldap.sh --import-cert *	# manage the certificates
2956 rexy 30
Cmnd_Alias	HTDIGEST=/usr/local/bin/alcasar-profil.sh			# manage htdigest groups
2931 rexy 31
Cmnd_Alias	LOG_GEN=/usr/local/bin/alcasar-generate_log.sh		# create log PDF from ACC
2956 rexy 32
Cmnd_Alias	LDAP=/usr/local/bin/alcasar-ldap.sh					# enable/disable LDAP connection
33
Cmnd_Alias 	IOT_CAPTURE=/usr/local/bin/alcasar-iot_capture.sh	# enable/disable raw capture of Iot (pcap) --> in activity ACC page
34
Cmnd_Alias 	WIFI4EU=/usr/local/bin/alcasar-wifi4eu.sh			# enable/disable wifi4eu integration (logo + snippet)
1 root 35
 
36
# Defaults specification
37
# Defaults syslog=auth
38
 
39
# Runas alias specification
40
 
41
# User privilege specification
42
root	ALL=(ALL) ALL
43
 
44
# Uncomment to allow people in group wheel to run all commands
45
# %wheel	ALL=(ALL)	ALL
46
 
47
# Same thing without a password
48
# %wheel	ALL=(ALL)	NOPASSWD: ALL
49
 
50
# Samples
51
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
52
# %users  localhost=/sbin/shutdown -h now
53
 
2931 rexy 54
ADMWEB	LAN_ORG=(root)	NOPASSWD: NET,SYSTEM_BACKUP,SQL,BL,NF,EXPORT,RADDB,LOGOUT,UAM,SERVICE,GAMMU,SSL,HTDIGEST,LOG_GEN,LDAP,IOT_CAPTURE,WIFI4EU
2304 tom.houday 55
ADMIN	LAN_ORG=(root)	NOPASSWD: NET,URPMI,BYPASS,SYSTEM_BACKUP,SQL,EXPORT,SERVICE,SSL
2633 rexy 56
SMS	LAN_ORG=(root)	NOPASSWD: GAMMU