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
'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=()
for itm in $users; do
userlist+=("$itm" "")

View file

@ -18,7 +18,7 @@ sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in
'List Users')
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"
;;
'Add User')
@ -44,4 +44,4 @@ case $sel in
;;
esac
exit 0
exit 0