summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions')
-rw-r--r--etc/functions/passwd-a14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/functions/passwd-a b/etc/functions/passwd-a
new file mode 100644
index 0000000..f1ec85a
--- /dev/null
+++ b/etc/functions/passwd-a
@@ -0,0 +1,14 @@
+## vim:ft=zsh
+## Change password on all machines
+## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/wtfpl>
+
+typeset host
+
+passwd
+for host in ${(k)hosts}; {
+ if [[ $host != $HOST ]]; {
+ echo " ---- $host ---- "
+ ssh $host passwd
+ }
+}