Advertisement
andmalv

[Tip] Borrar todos los usuarios normales

Aug 5th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.11 KB | None | 0 0
  1. for grupo in $(awk -F ':' '{ if ($3 >= 500 && $3 != 65534) print $1 }' /etc/passwd); do
  2.     groupdel $grupo
  3. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement