fixed passwd and groups variable
This commit is contained in:
parent
aa3e19fc8f
commit
e2a00b004b
@ -26,8 +26,8 @@ Create_user(){
|
|||||||
fi
|
fi
|
||||||
echo "${addgroups}"
|
echo "${addgroups}"
|
||||||
read -n 1 -p "wait"
|
read -n 1 -p "wait"
|
||||||
useradd -m -g users -G ${dgroups} -s /bin/bash ${uname}
|
useradd -m -g users -G "${addgroups}" -s /bin/bash ${uname}
|
||||||
passwd
|
passwd mollusk
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ -d /home/${uname} ];then
|
if [ -d /home/${uname} ];then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user