ok the helps says: pw [-l] [-p plaintext] i just thought it specifies the text file. thanks for clarifying it. Bernardo Reino wrote:> The argument to "-p" is not a file containing the password, but the > password itself!
On Sun, Apr 24, 2022 at 06:45:19PM +0800, ??? (alice) wrote:> Bernardo Reino wrote: >> The argument to "-p" is not a file containing the password, but the >> password itself! > > ok the helps says: > > pw [-l] [-p plaintext] > > i just thought it specifies the text file. > > thanks for clarifying it.Easy mistake to make. The orthographic difference between "plaintext" and "plain text" is small. The semantic difference is large: https://en.wikipedia.org/wiki/Plaintext https://en.wikipedia.org/wiki/Plain_text
On 24/04/22 22:45, ??? (alice) wrote:> ok the helps says: > > pw?????????? [-l] [-p plaintext] > > i just thought it specifies the text file. > > thanks for clarifying it. > > > > Bernardo Reino wrote: >> The argument to "-p" is not a file containing the password, but the >> password itself!The downside of putting the password on the command line is that it will (briefly) be visible in the output of 'ps': richard 9449 0.0 0.0 5040 3616 pts/4 R+ 19:27 0:00 /usr/bin/doveconf -f service=doveadm -c /etc/dovecot/dovecot.conf -m doveadm -e /usr/bin/doveadm pw -p asdf Cheers, Richard