2 ms·
> manually setting same password is not the way to go Agreed, if you have something like dish installed, something like dish "echo root:password | chpasswd"
by VLM 11y ago
> manually setting same password is not the way to go
Agreed, if you have something like dish installed, something like
dish "echo root:password | chpasswd"
should do the trick to everything dish knows about.
This is a simplification, but the general idea isn't too far off. If you don't know why its a simplification, then doing it this exact way is probably a bad idea.
- seletskiy 11y agoI'll call it oversimplification. It very error-prone and very difficult to automate. Of course, you can always tell your ops engineer to run something like `xargs -n1 -I{} ssh {} echo ... \| chpasswd < hosts.list` manually, but we are talking about automatisation of routine tasks, not "solving" them by shell scripts.