From 40521bdafd3cc0eb623df4d48d6658f32bccfdf1 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Mon, 6 Jun 2016 02:05:04 +0200 Subject: main/dovecot: Properly set primary group in .pre-install. Commit fb87e4fd6222 tried to fix problem I unintentionally brought in commit ccc056dbf9d3 - system user creation doesn't add same named group and uses nogroup as primary group unless explicitly specified via -G. Commit a593d306c92f has nothing to do with it, as it only sets GECOS. I cannot blame anyone (beside myself, obviously, for all this mess) as -g and -G can be easily misread without conuslting --help output. --- main/dovecot/dovecot.pre-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/dovecot/dovecot.pre-install b/main/dovecot/dovecot.pre-install index e3ee636d685..213a6a6b3a6 100644 --- a/main/dovecot/dovecot.pre-install +++ b/main/dovecot/dovecot.pre-install @@ -2,7 +2,7 @@ addgroup -S dovecot 2>/dev/null addgroup -S dovenull 2>/dev/null -adduser -S -u 90 -D -H -h /dev/null -s /sbin/nologin -g dovecot dovecot 2>/dev/null -adduser -S -u 91 -D -H -h /dev/null -s /sbin/nologin -g dovenull dovenull 2>/dev/null +adduser -S -u 90 -D -H -h /dev/null -s /sbin/nologin -G dovecot -g dovecot dovecot 2>/dev/null +adduser -S -u 91 -D -H -h /dev/null -s /sbin/nologin -G dovenull -g dovenull dovenull 2>/dev/null exit 0 -- cgit v1.2.3