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() { function addusers() {
if ! cat /etc/group | grep users; then
groupadd users 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 useradd -m -g users -G wheel,audio,video,sys,optical -s /bin/bash $username
passwd ${username} <<EOT passwd ${username} <<EOT
${userpass} ${userpass}

View file

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