Conf de sudo
darcs-hash:20080209214517-41f88-909cd9a6dc2cdfe3c248590c7698deb3bd9df7cf.gz
This commit is contained in:
parent
d37751d8b9
commit
255c4edf3c
2 changed files with 53 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
||||||
<Bundle name="sudo" version="2.0">
|
<Bundle name="sudo" version="2.0">
|
||||||
<!-- TODO: a faire
|
<ConfigFile name="/etc/sudoers"/>
|
||||||
<ConfigFile name="/etc/sudoers"/>
|
<Package name="sudo"/>
|
||||||
<Package name="sudo"/>
|
|
||||||
-->
|
|
||||||
</Bundle>
|
</Bundle>
|
||||||
|
|
51
Python/etc/sudoers
Normal file
51
Python/etc/sudoers
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
# -*- coding: utf-8; mode: python -*-
|
||||||
|
|
||||||
|
info["perms"] = 0440
|
||||||
|
|
||||||
|
header("Configuration du sudo")
|
||||||
|
|
||||||
|
if has("users"):
|
||||||
|
@Defaults:ALL tty_tickets
|
||||||
|
|
||||||
|
@Defaults env_keep += "DARCS_EMAIL"
|
||||||
|
|
||||||
|
@# Host alias specification
|
||||||
|
|
||||||
|
@# User alias specification
|
||||||
|
@User_Alias NOUNOUS= %adm
|
||||||
|
if has("users"):
|
||||||
|
@User_Alias RESPBATS= %respbats
|
||||||
|
@User_Alias MODEROS= %moderateurs
|
||||||
|
@User_Alias IMPRIMEURS= %imprimeurs
|
||||||
|
@User_Alias BUREAU= %bureau
|
||||||
|
@Runas_Alias USERS= %users
|
||||||
|
|
||||||
|
@# Cmnd alias specification
|
||||||
|
|
||||||
|
@# User privilege specification
|
||||||
|
@root ALL=(ALL) ALL
|
||||||
|
@NOUNOUS ALL=(ALL) ALL
|
||||||
|
|
||||||
|
if has("users"):
|
||||||
|
@# Les modérateurs ont le whos
|
||||||
|
@MODEROS ALL=(respbats) /usr/scripts/gestion/whos.py
|
||||||
|
|
||||||
|
@# Câbleurs
|
||||||
|
@RESPBATS ALL=(respbats) /usr/scripts/gestion/gest_crans.py,/usr/scripts/gestion/chgpass.py
|
||||||
|
@RESPBATS ALL=(respbats) /usr/scripts/admin/mail_invalide/mail_invalide.py, /usr/scripts/admin/controle_tresorier.py, /usr/scripts/admin/controle_tresorier2.py
|
||||||
|
@RESPBATS ALL=(respbats) NOPASSWD: /usr/scripts/gestion/whos.py,/usr/scripts/utils/chambre.py,/usr/scripts/stats_cableurs.py
|
||||||
|
|
||||||
|
@# Bureau
|
||||||
|
@BUREAU ALL=(respbats) /usr/scripts/admin/controle_charte_MA.py, /usr/scripts/admin/menage_cableurs.py
|
||||||
|
|
||||||
|
@# intranet
|
||||||
|
@respbats ALL=(USERS) NOPASSWD: /usr/scripts/gestion/config_mail.py
|
||||||
|
@respbats ALL=(root) NOPASSWD: /usr/local/bin/quota
|
||||||
|
|
||||||
|
@# Génération de codes impression pour les imprimeurs
|
||||||
|
@IMPRIMEURS ALL=(root) /usr/scripts/impression/gen_code.py
|
||||||
|
|
||||||
|
@# Un chsh pour tout le monde
|
||||||
|
@ALL ALL=(respbats) /usr/scripts/gestion/chsh.py, NOPASSWD:/usr/local/bin/ldap_whoami
|
||||||
|
@# Quotas
|
||||||
|
@ALL ALL=NOPASSWD:/usr/local/bin/quota.sh
|
Loading…
Add table
Add a link
Reference in a new issue