or perhaps this might be easier? *echo username:password | chpasswd* as mentioned here http://www.debian-administration.org/article/668/Changing_a_users_password_inside_a_script
On Tue, Jan 24, 2012 at 3:27 PM, Paul Hoffman <[email protected]>wrote: > Christian has the right idea here. For example, when changing the > password for a user, it turned out much easier to do it with sending a > file and executing it than trying to juggle the inputs. So, for > Ubuntu, I could use three commands: > echo "usertochange:newpassword" > foo > sudo /usr/sbin/chpasswd <foo > rm foo > > _______________________________________________ > Fab-user mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/fab-user >
_______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
