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
|
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" "")
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue