From 55784cfba602298cc5b20ee8817d5713ce034211 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Thu, 20 May 2010 13:13:07 +0000 Subject: [PATCH] dovecot uig and gid are reserved, use those ids --- dovecot.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dovecot.spec b/dovecot.spec index dcf3782..4d325c2 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -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