Advertisement
andmalv

[Tip] Listar usuarios que aun no tienen contraseña

Apr 7th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. # Si el segundo campo luego de los ':' en el archivo '/etc/passwd' esta vacío,
  2. # significa que ese usuario no tiene contraseña.
  3.  
  4. awk -F ':' '{ if ($2 == "") print $1 }' /etc/passwd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement