Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2019 20:01:24 +1000
From:      MJ <mafsys1234@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: master.passwd out of sync
Message-ID:  <152896fe-e1fa-6c4d-b1e4-97d13ea13539@gmail.com>
In-Reply-To: <20190903085614.GD3644@io.chezmoi.fr>
References:  <20190903085614.GD3644@io.chezmoi.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Albert,

On 3/09/2019 6:56 pm, Albert Shih wrote:
> Hi everyone,
> 
> I try to understand how the /etc/pwd.db and /etc/spwd.db are updated with /usr/sbin/pwd_mkdb.
> 
> Anyone known what going to update those file ?
> 
> The reason is I try to create a account with pw and sometime I got the
> message
> 
>    pw: user '*******' disappeared during update
> 
> so I just need to do a
> 
>      /usr/sbin/pwd_mkdb -p /etc/master.passwd
> 
> and everything work fine.
> 
> But that's not seem to be normal. So I try to find if they are some cron to
> do that and didn't find anything.

If I'm understanding you correctly, you want to know what rebuilds the master.passwd under "normal" circumstances?

That would be vipw(8).

Of course, you can still do as you state here and run pwd_mkdb(8) but better to use the right tool for the job.

Remember to set your EDITOR so vipw can use your preferred one.

> Regards
> 
> --
> Albert SHIH
> Observatoire de Paris
> xmpp: jas@obspm.fr
> Heure local/Local time:
> Tue 03 Sep 2019 10:51:35 AM CEST
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 


Regards,
Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?152896fe-e1fa-6c4d-b1e4-97d13ea13539>