Remove nobody user from users and sudoers config menu

This commit is contained in:
MatMoul 2018-06-04 22:37:50 +02:00
parent 068df29f27
commit cfc8a5ba78
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in case $sel in
'Add sudoer') 'Add sudoer')
users=$(awk -F: '{if ($3 >= 1000) { print $1 } }' /etc/passwd) users=$(awk -F: '{if ($3 >= 1000 && $3 <= 5000) { print $1 } }' /etc/passwd)
userlist=() userlist=()
for itm in $users; do for itm in $users; do
userlist+=("$itm" "") userlist+=("$itm" "")

View file

@ -18,7 +18,7 @@ sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in case $sel in
'List Users') 'List Users')
clear clear
awk -F: '{if ($3 >= 1000) { print $1 } }' /etc/passwd awk -F: '{if ($3 >= 1000 && $3 <= 5000) { print $1 } }' /etc/passwd
read -n1 -p "press a key to continue" read -n1 -p "press a key to continue"
;; ;;
'Add User') 'Add User')