Username entry is now safe and tested. Add missing grf handles. Fixes small dmesg error

This commit is contained in:
SolidHal 2018-10-10 15:09:02 -05:00
父節點 155a7cd37d
當前提交 fd7c481051
共有 2 個文件被更改,包括 9 次插入7 次删除

查看文件

@ -95,19 +95,21 @@ dmesg -D
#Force a safe username
while true; do
echo " Enter new username: "
read username
#ensure no whitespace
case $username in *\ *) echo usernames may not contain whitespace;; *) break;; esac
done
until adduser $username --gecos ""
do
while true; do
echo " Enter new username: "
read username
#ensure no whitespace
case $username in *\ *) echo usernames may not contain whitespace;; *) break;; esac
case $username in "") echo Username cannot be blank;; break;; esac
done
adduser $username --gecos ""
retVal=$?
if [ $retVal == 0 ]; then
break
fi
done
done
usermod -a -G sudo,netdev,input,video $username
dmesg -E