summaryrefslogtreecommitdiff
path: root/config-mgmt-users-base.PKGBUILD
blob: 1b7de4eeb8fd76ae6455a1ce0c5be0ab62464120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
. ${BUILDFILE%/*}/common.sh
pkgver=20161111.4

package() {
preamble
# #### users

install -d etc
install -dm750 etc/sudoers.d
add-file etc/sudoers.d/00-wheel <<EOF
%wheel ALL=(ALL) ALL
EOF

add-file etc/systemd/system/shadow.service.d/sort.conf <<EOF
[Service]
ExecStart=/bin/bash -c '/usr/bin/pwck -r && /usr/bin/pwck -s'
ExecStart=/bin/bash -c '/usr/bin/grpck -r && /usr/bin/grpck -s'
EOF

postamble
}