summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-12-14 16:31:35 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-12-14 16:33:09 +0100
commit22683afb6b4eab721eac56bfdf35da20514a53e1 (patch)
tree09713b1e9c392a9e424b0144af6fb5d574cadac0
parent32e45951ebf6fb767d64e589058177daf1bc6c55 (diff)
Added passwd-a function
-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
+ }
+}