From 5a1895da13be1e27ff16e78af7cb8f9d6067bd76 Mon Sep 17 00:00:00 2001 From: milisbir Date: Tue, 26 Sep 2017 09:02:04 +0300 Subject: [PATCH] ko --- bin/ko | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bin/ko b/bin/ko index b6a054018..4c99384fa 100755 --- a/bin/ko +++ b/bin/ko @@ -113,18 +113,24 @@ done echo 1>&2 " $name kullanıcısının oluşturulması. " -if [ -d /home/${name} ]; then - chown -R ${name}:${name} /home/${name} +if [ -f /root/.xinitrc ]; then + cp /root/.xinitrc /home/${name}/ fi +# kullanıcı izinlerin ayarlanması +if [ -d /home/${name} ]; then + #evdizini + chown -R ${name}:${name} /home/${name} + #ses aygıtları + setfacl -m u:${name}:rw /dev/snd/* +fi + if [ -z "$user_groups" ]; then /sbin/useradd -c "${description}" -m "${name}" || exit 1 else /sbin/useradd -c "${description}" -G "$user_groups" -m "${name}" || exit 1 fi -if [ -f /root/.xinitrc ]; then - cp /root/.xinitrc /home/${name}/ -fi + passwd "$name"