Commit a7d67c69 authored by Przemysław Pawełczyk's avatar Przemysław Pawełczyk Committed by Natanael Copa

main/[various]: Add group and use it as primary in .pre-* scripts.

Fixes the problem I unintentionally brought in commit ccc056db:
system user creation doesn't add same named group and uses nogroup as
primary group unless explicitly specified via -G.

Brings status quo regarding primary groups of users created in packages:
- main/apache2
- main/aports-build
- main/atheme-iris
- main/clamav
- main/clamsmtp
- main/coova-chilli
- main/dhcp
- main/djbdns
- main/ez-ipupdate
- main/fetchmail
- main/freeswitch
- main/gitolite
- main/gnats
- main/gross
- main/icecast
- main/memcached
- main/ngircd
- main/openntpd
- main/snort
- main/squid
- main/transmission
- main/znc
parent 976e09d0
#!/bin/sh
addgroup -S -g 82 www-data 2>/dev/null
adduser -S -D -H -h /var/www -s /sbin/nologin -g apache apache 2>/dev/null
addgroup -S apache 2>/dev/null
adduser -S -D -H -h /var/www -s /sbin/nologin -G apache -g apache apache 2>/dev/null
addgroup apache www-data 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -s /bin/sh -g buildozer buildozer 2>/dev/null
addgroup -S buildozer 2>/dev/null
adduser -S -D -s /bin/sh -G buildozer -g buildozer buildozer 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -h /usr/share/webapps/atheme-iris -s /sbin/nologin -g iris iris 2>/dev/null
addgroup -S iris 2>/dev/null
adduser -S -D -H -h /usr/share/webapps/atheme-iris -s /sbin/nologin -G iris -g iris iris 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -s /sbin/nologin -g clamav clamav 2>/dev/null
addgroup -S clamav 2>/dev/null
adduser -S -D -H -s /sbin/nologin -G clamav -g clamav clamav 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -s /sbin/nologin -g clamav clamav 2>/dev/null
addgroup -S clamav 2>/dev/null
adduser -S -D -H -s /sbin/nologin -G clamav -g clamav clamav 2>/dev/null
exit 0
......@@ -10,6 +10,7 @@ if [ -f "$old" ] && [ ! -f "$new" ]; then
echo " *"
fi
adduser -S -D -H -s /bin/false -g clamav clamav 2>/dev/null
addgroup -S clamav 2>/dev/null
adduser -S -D -H -s /bin/false -G clamav -g clamav clamav 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -s /sbin/nologin -g chilli chilli 2>/dev/null
addgroup -S chilli 2>/dev/null
adduser -S -D -H -s /sbin/nologin -G chilli -g chilli chilli 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -h /var/lib/dhcp -s /sbin/nologin -g dhcp dhcp 2>/dev/null
addgroup -S dhcp 2>/dev/null
adduser -S -D -h /var/lib/dhcp -s /sbin/nologin -G dhcp -g dhcp dhcp 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -h /etc/dnscache -g dnscache -s /sbin/nologin dnscache 2>/dev/null
addgroup -S dnscache 2>/dev/null
adduser -S -D -H -h /etc/dnscache -G dnscache -g dnscache -s /sbin/nologin dnscache 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -h /etc/tinydns -s /sbin/nologin -g tinydns tinydns 2>/dev/null
addgroup -S tinydns 2>/dev/null
adduser -S -D -H -h /etc/tinydns -s /sbin/nologin -G tinydns -g tinydns tinydns 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -h /var/lib/ez-ipupdate -s /sbin/nologin -g ipupdate ipupdate 2>/dev/null
addgroup -S ipupdate 2>/dev/null
adduser -S -D -h /var/lib/ez-ipupdate -s /sbin/nologin -G ipupdate -g ipupdate ipupdate 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -h /var/lib/fetchmail -s /sbin/nologin -g fetchmail fetchmail 2>/dev/null
addgroup -S fetchmail 2>/dev/null
adduser -S -D -H -h /var/lib/fetchmail -s /sbin/nologin -G fetchmail -g fetchmail fetchmail 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -h /var/run/freeswitch -s /sbin/nologin -g freeswitch freeswitch 2>/dev/null
addgroup -S freeswitch 2>/dev/null
adduser -S -D -H -h /var/run/freeswitch -s /sbin/nologin -G freeswitch -g freeswitch freeswitch 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -h /var/lib/git -s /bin/sh -g git git 2>/dev/null
addgroup -S git 2>/dev/null
adduser -S -D -H -h /var/lib/git -s /bin/sh -G git -g git git 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -h /var/lib/gnatsdb -g gnats gnats 2>/dev/null
addgroup -S gnats 2>/dev/null
adduser -S -D -h /var/lib/gnatsdb -G gnats -g gnats gnats 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -s /sbin/nologin -g gross gross 2>/dev/null
addgroup -S gross 2>/dev/null
adduser -S -D -H -s /sbin/nologin -G gross -g gross gross 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -h /var/log/icecast -s /sbin/nologin -g icecast icecast 2>/dev/null
addgroup -S icecast 2>/dev/null
adduser -S -D -h /var/log/icecast -s /sbin/nologin -G icecast -g icecast icecast 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -s /sbin/nologin -g memcached memcached 2>/dev/null
addgroup -S memcached 2>/dev/null
adduser -S -D -H -s /sbin/nologin -G memcached -g memcached memcached 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -h /etc/ngircd -s /sbin/nologin -g ngircd ngircd 2>/dev/null
addgroup ngircd 2>/dev/null
adduser -S -D -H -h /etc/ngircd -s /sbin/nologin -G ngircd -g ngircd ngircd 2>/dev/null
exit 0
......@@ -2,6 +2,7 @@
# this user should be included in alpine-baselayout-1.2.
# included here for backward compability.
adduser -S -D -H -h /var/empty -s /sbin/nologin -g ntp ntp 2>/dev/null
addgroup -S ntp 2>/dev/null
adduser -S -D -H -h /var/empty -s /sbin/nologin -G ntp -g ntp ntp 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -h /var/log/snort -s /sbin/nologin -g snort snort 2>/dev/null
addgroup -S snort 2>/dev/null
adduser -S -D -h /var/log/snort -s /sbin/nologin -G snort -g snort snort 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -h /var/cache/squid -g squid squid 2>/dev/null
addgroup -S squid 2>/dev/null
adduser -S -D -h /var/cache/squid -G squid -g squid squid 2>/dev/null
addgroup -S winbind 2>/dev/null
addgroup squid winbind 2>/dev/null
......
#!/bin/sh
adduser -S -D -h /var/cache/squid -g squid squid 2>/dev/null
addgroup -S squid 2>/dev/null
adduser -S -D -h /var/cache/squid -G squid -g squid squid 2>/dev/null
addgroup -S winbind 2>/dev/null
addgroup squid winbind 2>/dev/null
......
#!/bin/sh
adduser -S -D -h /var/lib/transmission -s /sbin/nologin -g transmission transmission 2>/dev/null
addgroup -S transmission 2>/dev/null
adduser -S -D -h /var/lib/transmission -s /sbin/nologin -G transmission -g transmission transmission 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D -H -s /sbin/nologin -g znc znc 2>/dev/null
addgroup -S znc 2>/dev/null
adduser -S -D -H -s /sbin/nologin -G znc -g znc znc 2>/dev/null
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment