summaryrefslogtreecommitdiff
path: root/config-users-base.PKGBUILD
blob: 72ffc358282dda6a8275d83d1038ec4a56d01f73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgver=1
pkgrel=1
arch=(any)

pkgname=config-users-base

package() {
cd "$pkgdir"

install -dm755 etc
install -dm750 etc/sudoers.d
install -m644 /dev/stdin etc/sudoers.d/00-wheel <<EOF
%wheel ALL=(ALL) ALL
EOF

install -Dm644 /dev/stdin 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

}