Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. lines=$(grep '^[^:]+::' /etc /shadow)
  2.  
  3. if [ "$lines" == "" ]; then
  4.  
  5. var=$(exit 2)$(exit 4)
  6.  
  7. if lines=$(grep '^[^:]+::' /etc/shadow); then
  8. printf 'There are users with an empty password:n%sn' "$lines"
  9. else
  10. printf 'OK, no user with empty passwords'
  11. fi
  12.  
  13. grep '^[^:]+:.:' /etc/shadow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement