Re: rpm packaging bug - smtpd user created with shell not /bin/false
[email protected] (Robert Spier)
| Newsgroups | perl.qpsmtpd |
|---|---|
| Message-ID | <[email protected]> |
Fix committed as 9348539ed7aa03b438905f953771db14fcb4c1ea
Once again, a patch would have been great.
I haven't tested this, so any RPM users, please do.
-R
Charlie Brady wrote:
>
>
> 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.
>
>