Skip to content

Commit 1a1eb32

Browse files
author
Duke B
committed
fix passwd
1 parent 979bb17 commit 1a1eb32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@
903903
display 'services' "$(systemctl list-units --type=service --state=running --no-pager --quiet | cut -d " " -f 3)" "${!services}"
904904
;;
905905
'users')
906-
display 'users' "$(sudo cat /etc/shadow | grep -v '!' | cut -d ':' -f 1)" "$users"
906+
display 'users' "$(sudo cat /etc/shadow | grep -Ev ':\!|:\*' | cut -d ':' -f 1)" "$users"
907907
;;
908908
'packages')
909909
if [[ "$os" == 'redhat' ]]; then

0 commit comments

Comments
 (0)