NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: usermgmt.conf and default password



On Wed, 9 Oct 2019, N wrote:

> usermgmt.conf(5) says, there is a password entry in the config file.
> 
> Setting it using pwhash(1)? and vi as using useradd -D -p... is not an option.
> 
> But adding a user with
> ? useradd -F -m testuser
> 
> does not give him a the password. Is this a bug in documentation or in
> useradd?

There is a bug. useradd -D doesn't know about -p,
If you manually add fields like "password" to config and use useradd -D 
and a supported switch to modify it (like -k), it will overwrite the 
config and you will lose the "password".


Home | Main Index | Thread Index | Old Index