From 22683afb6b4eab721eac56bfdf35da20514a53e1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 14 Dec 2008 16:31:35 +0100 Subject: Added passwd-a function --- etc/functions/passwd-a | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 etc/functions/passwd-a (limited to 'etc/functions') 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 +## License: WTFPL + +typeset host + +passwd +for host in ${(k)hosts}; { + if [[ $host != $HOST ]]; { + echo " ---- $host ---- " + ssh $host passwd + } +} -- cgit v1.2.3