Piping to doveadm pw

Kevin N. kevin at notscheduled.eu
Wed Jun 16 12:23:01 EEST 2021


Hello everybody,

I am using 'doveadm pw' from inside a bash script to generate the salted hash for a user provided password.
I call it like: doveadm pw -s SHA256-CRYPT -u $user -p $password

Is there any possible way to use piping (so it won't show up in ps for example) to pass the username and password to 'doveadm pw' instead of using arguments?

Dovecot version: 2.3.14

Many thanks,

Kevin


More information about the dovecot mailing list