summaryrefslogtreecommitdiff
path: root/etc/functions/passwd-a
blob: f1ec85a82d0f62b1167b23e50edef87c3f4e04db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
	}
}