3 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
4 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
7 ###################################################################
8 ###################################################################
9 ###################################################################
11 ## PLEASE EDIT THIS FILE WITH THE visudo COMMAND TO ENSURE IT
12 ## IS SYNTACTICALLY VALID.
14 ## /usr/sbin/visudo -f sudoers
16 ###################################################################
17 ###################################################################
18 ###################################################################
21 Defaults passprompt="[sudo] password for %u on %h: "
22 Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
24 # Find binaries to be executed as archvsync user also in its home, so the
25 # caller does not need to know.
26 Defaults>archvsync secure_path="/home/archvsync/bin:/usr/local/bin:/usr/bin:/bin"
28 # Host alias specification
29 Host_Alias VOIPHOSTS = vogler
30 Host_Alias WEBHOSTS = wolkenstein
31 Host_Alias SECHOSTS = seger
32 Host_Alias FTPHOSTS = fasolo
33 Host_Alias ZIVITHOSTS = zelenka, zandonai
34 Host_Alias AACRAIDHOSTS = pettersson
35 Host_Alias MEGARAIDHOSTS = sibelius
36 Host_Alias DELLHOSTS = schumann, wieck, manda-node03, manda-node04, schmelzer, smit
37 Host_Alias LISTHOSTS = bendel
38 Host_Alias BUILDD_MASTER = wuiet
39 Host_Alias PORTERBOXES = abel, amdahl, barriere, eller, harris, minkus, plummer, zelenka
40 Host_Alias PIUPARTS_SLAVE_HOSTS = piu-slave-bm-a, piu-slave-ubc-01
41 Host_Alias MQ_HOSTS = rainier, rapoport
42 Host_Alias JENKINSHOSTS = jerea
44 # Cmnd alias specification
46 # User privilege specification
50 # DSA and local admins
53 %adm ALL=(ALL) NOPASSWD: /usr/bin/apt-get update, /usr/bin/apt-get upgrade, /usr/bin/apt-get dist-upgrade, /usr/bin/apt-get clean, /usr/sbin/samhain -t check -i -p err -s none -l none -m none, /usr/sbin/upgrade-porter-chroots
55 %zivit-admins ZIVITHOSTS=(ALL) NOPASSWD: ALL
58 nagios MQ_HOSTS=(rabbitmq) NOPASSWD: /usr/sbin/rabbitmqctl list_queues -p dsa name messages consumers
59 nagios ALL=(ALL) NOPASSWD: /usr/sbin/service ekeyd-egd-linux restart
60 nagios ALL=(ALL) NOPASSWD: /usr/sbin/service samhain restart
61 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
62 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-filesystems ""
63 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-libs --ignore-younger=1h
64 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-stunnel-sanity ""
65 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-systemd-services ""
66 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-ucode-intel ""
67 nagios handel=(puppet) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-cert-expire /var/lib/puppet/ssl/certs/ca.pem
68 nagios handel=(puppet) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-cert-expire /srv/puppet.debian.org/ca/ca.crt
69 # with smartarray controllers
70 nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli ""
71 nagios ALL=(ALL) NOPASSWD: /usr/bin/arrayprobe ""
72 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpssacli controller all show
73 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] ld all show
74 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] ld [0-9] show
75 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd all show
76 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9]\:[0-9] show
77 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
78 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
79 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] show status
80 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller all show
81 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld all show
82 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld [0-9] show
83 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show
84 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show
85 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
86 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
87 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] show status
89 # other raid controllers
90 nagios AACRAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
91 nagios MEGARAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog
92 nagios DELLHOSTS=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-openmanage ""
93 nagios DELLHOSTS=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-openmanage -b bp=0
94 nagios DELLHOSTS=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-openmanage -b bp=0 -b bat_charge=0\:0
96 nagios backuphost=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
97 nagios storace=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
99 # groups and their role accounts
100 %alioth-archive ALL=(alioth-archive) ALL
101 %appstream ALL=(appstream) ALL
102 %auditor ALL=(accounting) ALL
103 %backports ALL=(backports) ALL
104 %blends ALL=(blends) ALL
105 %bootstrap ALL=(bootstrap) ALL
106 %btslink ALL=(btslink) ALL
107 %buildd ALL=(buildd) ALL
108 %codesearch ALL=(codesearch) ALL
109 %community ALL=(community) ALL
113 %debadmin ALL=(dak) ALL
114 %debadmin ALL=(dak-code) ALL
115 %debadmin ALL=(codesign) ALL
116 %debbugs ALL=(debbugs) ALL
117 %debbugs ALL=(debbugs-mirror) ALL
118 %debconfstatic ALL=(debconfstatic) ALL
119 %debdelta ALL=(debdelta) ALL
120 %debian-cd ALL=(debian-cd) ALL
121 %cloud-build ALL=(cloud-build) ALL
122 %cloud-ci ALL=(cloud-ci) ALL
123 %cloud-test ALL=(cloud-test) ALL
124 %cloud-deploy-aws ALL=(cloud-deploy-aws) ALL
125 %cloud-deploy-azure ALL=(cloud-deploy-azure) ALL
126 %cloud-deploy-gce ALL=(cloud-deploy-gce) ALL
127 %cloud-deploy-openstack ALL=(cloud-deploy-openstack) ALL
128 %cloud-deploy-digitalocean ALL=(cloud-deploy-digitalocean) ALL
129 %debian-i18n ALL=(debian-i18n) ALL
130 %debian-r ALL=(debian-r) ALL
131 %debian-r ALL=(debian-r-wb-buildd) ALL
132 %debian-release ALL=(release) ALL
133 %debsources ALL=(debsources) ALL
134 %debtags ALL=(debtags) ALL
135 %debwww ALL=(debwww) ALL
136 %dedup ALL=(dedup) ALL
138 %dgit ALL=(dgit-unpriv) ALL
139 %emdebian ALL=(emdebian) ALL
140 %forums ALL=(forums) ALL
141 %gitdoadm ALL=(gitdoadm) ALL
142 # the git user also exists on adayevskaya where it's a different service..
143 %gitdoadm godard=(git) ALL
144 %gitdoadm godard=(salsa-registry) ALL
145 %gitdoadm godard=(salsa-signup) ALL
146 %gitdoadm godard=(salsa-webhook) ALL
147 %gitdoadm godard=(salsa-pages) ALL
148 git godard=(salsa-registry) NOPASSWD: ALL
149 git godard=(salsa-signup) NOPASSWD: ALL
150 git godard=(salsa-webhook) NOPASSWD: ALL
151 git godard=(salsa-pages) NOPASSWD: ALL
152 %keyring ALL=(keyring) ALL
153 %keyring kaufmann=(root) NOPASSWD: /usr/sbin/service bind9 reload
154 %jenkins-adm ALL=(jenkins-adm) ALL
155 %lintian ALL=(lintian) ALL
156 %listweb ALL=(listweb) ALL
157 %list LISTHOSTS=(list) ALL
159 %list master=(debian) ALL
160 %manpages ALL=(manpages) ALL
161 %mirroradm ALL=(archvsync) ALL
162 %mirroradm melartin=(mirroradm) ALL
164 %patch-tracker ALL=(patch-tracker) ALL
165 %pet-devel ALL=(pet-devel) ALL
166 %piuparts ALL=(piupartsm) ALL
167 %piuparts ALL=(piupartss) ALL
168 %pkg_maint ALL=(pkg_user) ALL
169 %planet ALL=(planet) ALL
170 %popcon ALL=(popcon) ALL
171 %ports ALL=(ports) ALL
172 %search ALL=(search) ALL
173 %secretary ALL=(secretary) ALL
174 %sectracker ALL=(sectracker) ALL
175 %security SECHOSTS=(mail_security) ALL
176 %security ALL=(security) ALL
177 %snapshot ALL=(snapshot) ALL
178 %uddadm ALL=(udd) ALL
179 %videoteam vittoria=(veyepar) ALL
180 %videoteam vittoria=(sreview) ALL
181 %volatile ALL=(volatile) ALL
182 %wbadm ALL=(wbadm) ALL
183 %mujeres ALL=(women) ALL
184 %wikiadm ALL=(wiki,wikiweb) ALL
185 %qa-core ALL=(qa) ALL
186 %gobby gombert=(gobby) ALL
187 %dacshelper diabelli=(www-data) ALL
188 %debsso diabelli=(debsso) ALL
189 %debsso-web diabelli=(debsso-web) ALL
190 %debconf-web debussy=(debconf-web) ALL
192 # the dak user gets to run stuff as dak-unpriv (for things like lintian checks)
193 %ftptrainee FTPHOSTS=(dak-unpriv) NOPASSWD: /usr/bin/lintian
194 dak ALL=(dak-unpriv) NOPASSWD: ALL
195 # and ftpmaster can access the role user for their web services
196 %debadmin FTPHOSTS=(dak-web) ALL
198 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
199 %apachectrl ALL=(root) /usr/sbin/apache2-vhost-update
202 # FIXME: change that ALL for hosts to a hostlist of buildds?
203 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
204 buildd ALL=(ALL) NOPASSWD: ALL
206 %appstream mekeel=(staticsync) NOPASSWD: /usr/local/bin/static-update-component appstream.debian.org
207 %backports FTPHOSTS,coccia=(staticsync) NOPASSWD: /usr/local/bin/static-update-component backports.debian.org
208 %bootstrap boott=(staticsync) NOPASSWD: /usr/local/bin/static-update-component bootstrap.debian.net
209 d-i dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component d-i.debian.org
210 debian-cd casulana=(staticsync) NOPASSWD: /usr/local/bin/static-update-component cdbuilder-logs.debian.org
211 lucas dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debaday.debian.net
212 dsa dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component dsa.debian.org
213 dak FTPHOSTS=(staticsync) NOPASSWD: /usr/local/bin/static-update-component incoming.debian.org
214 dak FTPHOSTS=(staticsync) NOPASSWD: /usr/local/bin/static-update-component metadata.ftp-master.debian.org
215 codesign FTPHOSTS=(staticsync) NOPASSWD: /usr/local/bin/static-update-component metadata.ftp-master.debian.org
216 %publicity dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component bits.debian.org
217 %publicity dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component micronews.debian.org
218 %mirroradm melartin=(staticsync) NOPASSWD: /usr/local/bin/static-update-component mirror-master.debian.org
219 %debdelta donizetti=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debdeltas.debian.net
220 %webwml master=(staticsync) NOPASSWD: /usr/local/bin/static-update-component network-test.debian.org
221 planet philp=(staticsync) NOPASSWD: /usr/local/bin/static-update-component planet.debian.org
222 debwww wolkenstein=(staticsync) NOPASSWD: /usr/local/bin/static-update-component www.debian.org
223 %blends dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component blends.debian.org
224 %Debian dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component wnpp-by-tags.debian.net
225 %Debian dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component mozilla.debian.net
226 %ports dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component www.ports.debian.org
227 %debian-release respighi=(staticsync) NOPASSWD: /usr/local/bin/static-update-component release.debian.org
228 %debian-release coccia=(staticsync) NOPASSWD: /usr/local/bin/static-update-component release.debian.org-pu
229 %debvoip dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component rtc.debian.org
230 %security dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component security-team.debian.org
231 %publicity dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net
232 pabs dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net
233 %lintian lindsay=(staticsync) NOPASSWD: /usr/local/bin/static-update-component lintian.debian.org
234 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component 10years.debconf.org
235 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf0.debconf.org
236 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf1.debconf.org
237 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf2.debconf.org
238 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf3.debconf.org
239 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf4.debconf.org
240 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf5.debconf.org
241 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf6.debconf.org
242 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf7.debconf.org
243 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf16.debconf.org
244 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf17.debconf.org
245 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf18.debconf.org
246 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debconf19.debconf.org
247 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component es.debconf.org
248 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component fr.debconf.org
249 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component miniconf10.debconf.org
250 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component wiki.debconf.org
251 %debconfstatic dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component www.debconf.org
252 mini-dak porta=(staticsync) NOPASSWD: /usr/local/bin/static-update-component incoming.ports.debian.org
253 %manpages manziarly=(staticsync) NOPASSWD: /usr/local/bin/static-update-component manpages.debian.org
254 %dpl dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component dpl.debian.org
255 %keyring kaufmann=(staticsync) NOPASSWD: /usr/local/bin/static-update-component openpgpkey.debian.org
257 # The piuparts slave needs to handle chroots
258 piupartss PIUPARTS_SLAVE_HOSTS=(ALL) NOPASSWD: ALL
259 # trigger of mirror run for packages
260 dnsadm denis=(root) NOPASSWD: /usr/sbin/service bind9 reload
261 letsencrypt denis=(dnsadm) NOPASSWD: /srv/dns.debian.org/bin/update
262 # wbadm can update all buildd* users' keys on buildd.d.o
263 %wbadm BUILDD_MASTER=(wb-buildd) ALL
264 %wbadm BUILDD_MASTER=(root) /usr/local/bin/update-buildd-sshkeys
266 dak FTPHOSTS,SECHOSTS=(archvsync) NOPASSWD:/home/archvsync/runmirrors, /home/archvsync/bin/runmirrors
267 # archvsync triggers snapshot
268 archvsync sibelius,sallinen=(snapshot) NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
269 archvsync sibelius=(snapshot) NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
271 %debian-release FTPHOSTS=(dak) /usr/local/bin/dak transitions --import *
272 %ftpteam FTPHOSTS=(dak) /usr/local/bin/dak transitions --import *
274 %security SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
275 %sec_public SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
276 %sec_public SECHOSTS=(dak) NOPASSWD: /home/dak/trigger_mirror
277 dak SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/signal_security
278 dak SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/signal_security-buildd-pool
280 debwww WEBHOSTS=(archvsync) NOPASSWD: /home/archvsync/webmirrors/runmirrors
281 %publicity WEBHOSTS=(debwww) /srv/www.debian.org/update-part News
282 %debvote WEBHOSTS=(debwww) /srv/www.debian.org/update-part vote
283 %d-i WEBHOSTS=(debwww) /srv/www.debian.org/update-part devel/debian-installer
284 %d-i WEBHOSTS=(debwww) /srv/www.debian.org/cron/lessoften-parts/1installation-guide
286 %list LISTHOSTS=(postfix) /usr/sbin/postcat
287 %list LISTHOSTS=(root) /usr/sbin/postfix reload
288 %list LISTHOSTS=(root) /usr/sbin/qshape, /usr/sbin/postsuper
289 %list LISTHOSTS=(root) /usr/sbin/service spamassassin restart, /usr/sbin/service spamassassin reload, /usr/sbin/service spamassassin stop, /usr/sbin/service spamassassin start
290 %list LISTHOSTS=(root) /usr/sbin/service amavis restart, /usr/sbin/service amavis reload, /usr/sbin/service amavis stop, /usr/sbin/service amavis start
291 %list LISTHOSTS=(amavis) NOPASSWD: /usr/bin/sa-learn
292 %list LISTHOSTS=(amavis) ALL
293 # geodns may reload bind
294 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/service bind9 reload
295 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/rndc reconfig
296 # pushed nagiosadm reload icinga on tchaikovsky
297 nagiosadm tchaikovsky=(root) NOPASSWD: /usr/sbin/service icinga reload
299 %debvoip VOIPHOSTS=(root) /usr/sbin/service resiprocate-turn-server restart, /usr/sbin/service repro restart
300 %debvoip VOIPHOSTS=(root) /usr/sbin/service prosody restart, /usr/sbin/service prosody reload, /usr/sbin/service prosody stop, /usr/sbin/service prosody start
302 %jenkins-adm JENKINSHOSTS=(jenkins) ALL
303 %jenkins-adm JENKINSHOSTS=(root) /usr/sbin/service jenkins restart, /usr/sbin/service jenkins reload, /usr/sbin/service jenkins stop, /usr/sbin/service jenkins start
304 # snapshot can reload apache to get the wsgi reloaded
305 snapshot lw07,sallinen=(root) NOPASSWD: /usr/sbin/service apache2 reload
307 %Debian,%guest,%d-i PORTERBOXES=(root) NOPASSWD: /usr/local/bin/dd-schroot-cmd
311 mini-dak porta=(archvsync) NOPASSWD: /home/archvsync/signal_ports
313 # temporary, for debugging
314 thijs klecker=(root) /usr/sbin/tcpdump