andmalv

[Tip] Listar solo los usuarios/grupos normales

Aug 5th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. # Usuarios
  2.    
  3.     awk -F ':' '{ if ($3 >= 500 && $3 != 65534) print $1 }' /etc/passwd | nl
  4.  
  5. # Grupos
  6.    
  7.     awk -F ':' '{ if ($3 >= 500 && $3 != 65534) print $1 }' /etc/group | nl
Add Comment
Please, Sign In to add comment