This commit is contained in:
simono41 2018-09-03 01:58:07 +02:00
parent f18a5c4139
commit 1a14e80d37
2 changed files with 18 additions and 1 deletions

View file

@ -165,7 +165,21 @@ function ldconfigcache() {
}
function addusers() {
groupadd users
if ! cat /etc/group | grep users; then
groupadd users
fi
if ! cat /etc/group | grep wheel; then
groupadd wheel
fi
if ! cat /etc/group | grep audio; then
groupadd audio
fi
if ! cat /etc/group | grep video; then
groupadd video
fi
if ! cat /etc/group | grep optical; then
groupadd optical
fi
useradd -m -g users -G wheel,audio,video,sys,optical -s /bin/bash $username
passwd ${username} <<EOT
${userpass}

View file

@ -111,6 +111,7 @@ keyutils
kmod
kmod-openrc
krb5
ldns
less
lftp
libaio
@ -227,6 +228,8 @@ openconnect
openrc
openrc-init
openresolv
openssh
openssh-openrc
openssl
openssl-1.0
opensysusers