Des scripts pour aider à l'installation des postes en libre service du secours catholique de calais - retour accueil
git clone git://bebou.netlib.re/secours-catholique
Log | Files | Refs |
resetusers (254B)
1 #! /bin/sh 2 3 cat /etc/passwd | 4 grep -E '/bin/.*sh' | 5 grep -Ev "(root|secours|$(whoami))" | 6 cut -d: -f1 | 7 xargs -t -I{} rm -rf /home/{} 8 9 cat /etc/passwd | 10 grep '/bin/.*sh' | 11 grep -Ev "(root|secours|$(whoami))" | 12 cut -d: -f1 | 13 xargs -t -n1 deluser 14