use a pipe to communicate with the passwd command