mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
testing/[various]: Add group and use it as primary in .pre-* scripts.
Fixes the problem I unintentionally brought in commit ccc056dbf9
:
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:
- testing/dbmail
- testing/dspam
- testing/opensips
- testing/pdns
- testing/qpage
- testing/rrdbot
- testing/wt
This commit is contained in:
parent
5708404c50
commit
a835b69165
7 changed files with 14 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
adduser -S -D -H -h /var/lib/dbmail -s /bin/false -g dbmail dbmail 2>/dev/null
|
||||
addgroup -S dbmail 2>/dev/null
|
||||
adduser -S -D -H -h /var/lib/dbmail -s /bin/false -G dbmail -g dbmail dbmail 2>/dev/null
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
adduser -S -D -h /var/lib/dspam -s /bin/false -g dspam dspam 2>/dev/null
|
||||
addgroup -S dspam 2>/dev/null
|
||||
adduser -S -D -h /var/lib/dspam -s /bin/false -G dspam -g dspam dspam 2>/dev/null
|
||||
chown dspam:dspam /var/lib/dspam
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
adduser -S -D -H -h /var/empty -s /bin/false -g opensips opensips 2>/dev/null
|
||||
addgroup -S opensips 2>/dev/null
|
||||
adduser -S -D -H -h /var/empty -s /bin/false -G opensips -g opensips opensips 2>/dev/null
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
adduser -S -D -H -h /var/empty -s /bin/false -g pdns pdns 2>/dev/null
|
||||
addgroup -S pdns 2>/dev/null
|
||||
adduser -S -D -H -h /var/empty -s /bin/false -G pdns -g pdns pdns 2>/dev/null
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
adduser -S -D -h /var/lib/qpage -s /bin/false -G qpage -g qpage qpage 2>/dev/null
|
||||
addgroup -S qpage 2>/dev/null
|
||||
adduser -S -D -h /var/lib/qpage -s /bin/false -G qpage -G qpage -g qpage qpage 2>/dev/null
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
adduser -S -D -H -s /bin/false -g rrdbotd rrdbotd 2>/dev/null
|
||||
addgroup -S rrdbotd 2>/dev/null
|
||||
adduser -S -D -H -s /bin/false -G rrdbotd -g rrdbotd rrdbotd 2>/dev/null
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
addgroup -S -g 82 www-data 2>/dev/null
|
||||
adduser -S -D -H -s /sbin/nologin -g wt wt 2>/dev/null
|
||||
addgroup -S wt 2>/dev/null
|
||||
adduser -S -D -H -s /sbin/nologin -G wt -g wt wt 2>/dev/null
|
||||
addgroup wt www-data 2>/dev/null
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue