From owner-freebsd-questions@freebsd.org Tue Sep 3 10:01:32 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 58F89D4D9C for ; Tue, 3 Sep 2019 10:01:32 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46N2Xp3JCJz47Rv for ; Tue, 3 Sep 2019 10:01:30 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pf1-x42d.google.com with SMTP id y22so4831917pfr.3 for ; Tue, 03 Sep 2019 03:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=ucPXqsEvrlE+4ueX0JZ/oeYiVOvy47LT0MDJR9uNFrA=; b=FnHKkmn+RxnwNbOdTf+gv6BomDyeBEbOkIhTt86xVTD+VNzc7b545A0Bk2IPLjHEEP 5RE2IQXVKHMWfe62xAMPE/vhV25rAFpkUsbrBPA8hCcPuAnNRfDgqVhmX2BmmeWFhpfV 57rySvRHDzjLtKjM38mU2mvzM62ZsFEYRavwErOEpXKsZqpfkx3A9bBlEpXH/dt6rgUL wqor7ysXeZFYSohUafiw6AuSlEg5ZPLps4Is677wGsYJdK+BAVJx1Fy3UhlufGA1DbL8 jzyXYtZ9QsGXpi56yOIQJ5G519WeU1XTwZ4VVns5Jwnh/0r4dxNMiF/4Wz6G2qEr1nP6 +Q3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ucPXqsEvrlE+4ueX0JZ/oeYiVOvy47LT0MDJR9uNFrA=; b=GkVDzPdA75bQr26HCQA63fYk0cQ0LWbJ+KVzbBMl4i0u1G051lmenCylP0tK/Ihem7 YEdplhmEMTAb44+fO3OHlA8Ha784+eGq+oibzXVXBY1lDk+770G27NZpH9A/TtndtX30 4FW5ZM+PXDxwhE7PpacrAfPnIcnDQqfXzPxT0Nal4F7nzb4XVsscn5iBbk/j5OVwMk9H bm0QAdCJYSxLqAn1ptRWfznVB5yIXTRnNPiP8GbTRx0/FsSRri4G1U2lbhfMW09z4nVp T5LKZKbQRRUyv//zIUCw3KEotB3Wu569fG23RZbYgpYrBqU4qcaooFgEIEMiIUjNwMME GeBw== X-Gm-Message-State: APjAAAUBStVHvoRkLvPiur2OwR60D9+tqD+byvGcSIfsY5+DRVoxH3Gq Ftd22mNntIVFbQNyBw+hFwwbCAlY X-Google-Smtp-Source: APXvYqyEt0ud2RaAI5wBUBb+yQkqbazm48SYsOxlA2aws2cmNGiBz5816tZmE6Fwsw7ZhFVmVCJE2A== X-Received: by 2002:a62:3083:: with SMTP id w125mr20025316pfw.102.1567504887973; Tue, 03 Sep 2019 03:01:27 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-177-70.mel.connect.net.au. [59.101.177.70]) by smtp.gmail.com with ESMTPSA id s24sm19398493pgm.3.2019.09.03.03.01.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Sep 2019 03:01:27 -0700 (PDT) Subject: Re: master.passwd out of sync To: freebsd-questions@freebsd.org References: <20190903085614.GD3644@io.chezmoi.fr> From: MJ Message-ID: <152896fe-e1fa-6c4d-b1e4-97d13ea13539@gmail.com> Date: Tue, 3 Sep 2019 20:01:24 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190903085614.GD3644@io.chezmoi.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46N2Xp3JCJz47Rv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=FnHKkmn+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::42d as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.997,0]; RECEIVED_SPAMHAUS_PBL(0.00)[70.177.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-9.15), ipnet: 2607:f8b0::/32(-2.82), asn: 15169(-2.30), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[d.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2019 10:01:32 -0000 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