[Pkg-xmpp-devel] Bug#541743: jabberd2: /var/run/jabberd2 is not owned by jabber if default file is removed

Simon Josefsson simon at josefsson.org
Wed Apr 22 19:42:48 UTC 2015


Hi Raphael.  Thanks for the report.  I propose the following patch.  It
kind of hides the fact that you can modify the uid/gid of jabberd2 from
the defaults file since that probably isn't something we want to
encourage, however if someone adds USER/GROUP to her default-file, it
will work.  Thoughts?

/Simon

diff --git a/debian/default b/debian/default
index be9828c..a2f249a 100644
--- a/debian/default
+++ b/debian/default
@@ -2,10 +2,6 @@
 # sourced by /etc/init.d/jabberd2
 # installed at /etc/default/jabberd2 by the maintainer scripts
 
-# user and group
-USER=jabber
-GROUP=jabber
-
 # run router
 ROUTER_RUN=1
 
diff --git a/debian/init b/debian/init
index d71be91..97903c7 100644
--- a/debian/init
+++ b/debian/init
@@ -13,6 +13,8 @@
 
 set -e
 
+USER=jabber
+GROUP=jabber
 test -f /etc/default/jabberd2 && . /etc/default/jabberd2
 
 COMPONENTDPATH=/etc/jabberd2/component.d
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signatur
URL: <http://lists.alioth.debian.org/pipermail/pkg-xmpp-devel/attachments/20150422/a53a2bbf/attachment.sig>


More information about the Pkg-xmpp-devel mailing list