[sudoers] commande sip_message sur zamok
Permet d'exécuter le script d'envoi de message sip sans être nounou. Ça permet de faire des trucs kikoo comme écrire en deux lignes un plugin de highlight irc ou alors avertir de la fin d'une compil en allant se faire un café: $ make; echo "Build finished (status $?)" | sip_message Bref, maintenant tout le monde peut s'en servir.
This commit is contained in:
parent
82bf7b1035
commit
cf86caafbe
5 changed files with 13 additions and 0 deletions
3
Bundler/usertools.xml
Normal file
3
Bundler/usertools.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<Bundle name="usertools">
|
||||
<Path name="/usr/local/bin/sip_message" />
|
||||
</Bundle>
|
3
Cfg/usr/local/bin/sip_message/info.xml
Normal file
3
Cfg/usr/local/bin/sip_message/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<FileInfo>
|
||||
<Info owner='root' group='users' perms='0754'/>
|
||||
</FileInfo>
|
3
Cfg/usr/local/bin/sip_message/sip_message
Normal file
3
Cfg/usr/local/bin/sip_message/sip_message
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo -u respbats /usr/scripts/sip/send_sms.py "$@"
|
|
@ -927,6 +927,7 @@
|
|||
<Group name="mail-mx"/>
|
||||
<Group name="home-permanent"/>
|
||||
<Bundle name="generate"/>
|
||||
<Bundle name="usertools" comment="Outils utiles aux adhérents"/>
|
||||
</Group>
|
||||
|
||||
<Group name="news-server"
|
||||
|
|
|
@ -82,6 +82,9 @@ if has("users"):
|
|||
@# Quotas
|
||||
print "ALL ALL=(respbats%s) NOPASSWD:/usr/local/bin/quota.sh" % (addit)
|
||||
|
||||
@# Envoi de message SIP
|
||||
print "ALL ALL=(respbats%s) NOPASSWD:/usr/scripts/sip/send_sms.py" % (addit)
|
||||
|
||||
monit_path = '/usr/%sbin/monit' % ('' if has('wheezy') else 's')
|
||||
print "%%respbats ALL=(ALL) NOPASSWD: %s summary, %s status" % (monit_path, monit_path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue