Remove nobody user from users and sudoers config menu
This commit is contained in:
parent
068df29f27
commit
cfc8a5ba78
2 changed files with 3 additions and 3 deletions
|
@ -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" "")
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue