From owner-freebsd-hackers Fri Jan 23 21:29:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA04869 for hackers-outgoing; Fri, 23 Jan 1998 21:29:24 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.calweb.com (mail.calweb.com [208.131.56.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA04821 for ; Fri, 23 Jan 1998 21:29:09 -0800 (PST) (envelope-from notwerk@calweb.com) Received: by mail.calweb.com (8.8.6/8.8.6) with SMTP id VAA20607; Fri, 23 Jan 1998 21:25:09 -0800 (PST) X-SMTP: helo polaris from notwerk@calweb.com server @as5200-5.sl030.cns.vt.edu ip 128.173.38.39 Message-Id: <3.0.5.32.19980124002503.007abb90@pop.calweb.com> X-Sender: notwerk@pop.calweb.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Sat, 24 Jan 1998 00:25:03 -0500 To: pstewart@oncomdis.on.ca, freebsd-hackers@FreeBSD.ORG From: Giao Nguyen Subject: Re: Linux --> FreeBSD In-Reply-To: <199801240119.UAA19683@oncomdis.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk At 08:30 PM 1/23/98 +0000, pstewart@oncomdis.on.ca wrote: >One thing I am not totally clear on is the way the passwd.master file >is updated. I can run adduser etc. and put a user online but does >that automatically update the passwd.master. First of all, let me congratulate you on the switch. Good choice. Excellent job. No,, passwd.master is updated any time that you make a change to the password table. In fact this is the master table. The other table (/etc/passwd) only exists for user application to get pertinent (ie, not passwords and not user group) for the application's nefarious uses (or any other imaginative uses the author deems appropriate). There is *another* file pertinent to the password system, /etc/pwd.db. This file is a database of the password information. Why? Because large tables mean longer read time. Having a hash database shortens the read time. This rocks for large installations (large => 1). If you modify passwd.master by chfn, chsh, passwd, etc. that's fine. If you modify it with vi, don't forget to build /etc/pwd.db with pwd_mkdb. Have fun. Giao Nguyen