dovecot uig and gid are reserved, use those ids

This commit is contained in:
Michal Hlavinka 2010-05-20 13:13:07 +00:00
parent 549f54abe5
commit 55784cfba6

View File

@ -229,10 +229,12 @@ rm -rf $RPM_BUILD_ROOT
%pre
getent group dovecot >/dev/null || groupadd -r dovecot
getent group dovenull >/dev/null || groupadd -r dovenull
#dovecot uig and gid are reserved, see /usr/share/doc/setup-*/uidgid
getent group dovecot >/dev/null || groupadd -r --gid 97 dovecot
getent passwd dovecot >/dev/null || \
useradd -r -g dovecot -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot IMAP server" dovecot
useradd -r --uid 97 -g dovecot -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot IMAP server" dovecot
getent group dovenull >/dev/null || groupadd -r dovenull
getent passwd dovenull >/dev/null || \
useradd -r -g dovenull -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot's unauthorized user" dovenull
exit 0