HomeFreeBSD

MFC: pw(8): fix combination of modes -N and -w random

Description

MFC: pw(8): fix combination of modes -N and -w random

The command "pw usermod nobody -Nw random" (or useradd)
generates random password and prints it in encrypted form
but skips choosen random string that makes not much sense
and contradicts the manual page pw.8

Fix it by showing random password in plain text with -N and
without it equally. Add yet another example of how to generate
pw-style random password.

(cherry picked from commit 1cbe5012cfe10226dd365af325a01de5d4c15f5d)

Details

Provenance
eugen_grosbein.netAuthored on Nov 28 2022, 2:22 PM
Parents
rG6974ae0530bd: Fix compile for 32-bit architectures.
Branches
Unknown
Tags
Unknown