From 9348539ed7aa03b438905f953771db14fcb4c1ea Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 25 Jul 2010 21:48:26 -0700 Subject: don't create homedir in RPM based on.. From: Charlie Brady Subject: rpm packaging bug - smtpd user created with shell not /bin/false Date: Sat, 17 Jul 2010 18:17:49 -0400 (EDT) Message-ID: http://bugs.contribs.org/show_bug.cgi?id=6025 if ! id smtpd >/dev/null 2>&1 then # need to create smtpd user. if perl -e 'exit ! defined(getgrnam("postdrop"))' then # if postfix is installed, we will probably use # queue/postfix, which will need this: supp="-G postdrop" fi useradd -r -m $supp smtpd fi qpsmtpd needs a user "smtpd", but should not create a home directory or give access to a shell. --- packaging/rpm/qpsmtpd.spec.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/packaging/rpm/qpsmtpd.spec.in b/packaging/rpm/qpsmtpd.spec.in index f591ed6..e7529de 100644 --- a/packaging/rpm/qpsmtpd.spec.in +++ b/packaging/rpm/qpsmtpd.spec.in @@ -153,7 +153,7 @@ then # queue/postfix, which will need this: supp="-G postdrop" fi - useradd -r -m $supp smtpd + useradd -r -M -s /bin/false $supp smtpd fi %changelog -- 1.7.2.2