diff options
| author | Nuno Santos <nsantos@apache.org> | 2008-04-01 15:23:01 +0000 |
|---|---|---|
| committer | Nuno Santos <nsantos@apache.org> | 2008-04-01 15:23:01 +0000 |
| commit | d376cf7c6d58f27aa38f4f986e87f9579816e255 (patch) | |
| tree | d21f1381ef009a01196a048967202e8f9a085846 | |
| parent | dec0c1bc8f2971905e75c32a821f153d524b8d34 (diff) | |
| download | qpid-python-d376cf7c6d58f27aa38f4f986e87f9579816e255.tar.gz | |
QPID-892: Make qpidd daemon not run as root (rpm install)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@643442 13f79535-47bb-0310-9956-ffa450edef68
| -rwxr-xr-x | qpid/cpp/etc/qpidd | 2 | ||||
| -rw-r--r-- | qpid/cpp/qpidc.spec.in | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/qpid/cpp/etc/qpidd b/qpid/cpp/etc/qpidd index 821e50a9a2..55d885ef66 100755 --- a/qpid/cpp/etc/qpidd +++ b/qpid/cpp/etc/qpidd @@ -31,7 +31,7 @@ RETVAL=0 start() { echo -n $"Starting Qpid AMQP daemon: " - daemon --check $prog $prog --daemon $QPIDD_OPTIONS + daemon --check $prog "runuser -s /bin/sh qpidd -c \"$prog --daemon $QPIDD_OPTIONS\"" RETVAL=$? echo [ $RETVAL = 0 ] && touch $lockfile diff --git a/qpid/cpp/qpidc.spec.in b/qpid/cpp/qpidc.spec.in index fd4a24b2e5..2819f02c45 100644 --- a/qpid/cpp/qpidc.spec.in +++ b/qpid/cpp/qpidc.spec.in @@ -5,7 +5,7 @@ Name: @PACKAGE@ Version: @VERSION@ -Release: 24%{?dist} +Release: 25%{?dist} Summary: Libraries for Qpid C++ client applications Group: System Environment/Libraries License: Apache Software License @@ -69,6 +69,13 @@ Requires: openais-devel Libraries and header files for developing extensions to the Qpid broker daemon. +%pre +getent group qpidd >/dev/null || groupadd -r qpidd +getent passwd qpidd >/dev/null || \ + useradd -r -m -g qpidd -d %{_localstatedir}/lib/qpidd -s /sbin/nologin \ + -c "Owner of Qpidd Daemons" qpidd +exit 0 + %prep %setup -q @@ -157,6 +164,9 @@ fi /sbin/ldconfig %changelog +* Mon Mar 31 2008 Nuno Santos <nsantos@redhat.com> - 0.2-25 +- Create user qpidd, start qpidd service as qpidd + * Mon Feb 18 2008 Rafael Schloming <rafaels@redhat.com> - 0.2-24 - Bug fix for TCK issue in Beta 3 |
