diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-12-14 16:31:35 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-12-14 16:33:09 +0100 |
commit | 22683afb6b4eab721eac56bfdf35da20514a53e1 (patch) | |
tree | 09713b1e9c392a9e424b0144af6fb5d574cadac0 /etc | |
parent | 32e45951ebf6fb767d64e589058177daf1bc6c55 (diff) |
Added passwd-a function
Diffstat (limited to 'etc')
-rw-r--r-- | etc/functions/passwd-a | 14 |
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 + } +} |