From owner-freebsd-stable Fri Jul 10 15:17:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA29019 for freebsd-stable-outgoing; Fri, 10 Jul 1998 15:17:24 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from geeklab.globalserve.net (geeklab.globalserve.net [209.90.144.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA29000 for ; Fri, 10 Jul 1998 15:17:19 -0700 (PDT) (envelope-from philipp@globalserve.net) Received: from localhost (philipp@localhost) by geeklab.globalserve.net (8.8.8/8.8.7) with SMTP id SAA14743; Fri, 10 Jul 1998 18:38:02 -0400 (EDT) X-Authentication-Warning: geeklab.globalserve.net: philipp owned process doing -bs Date: Fri, 10 Jul 1998 18:38:01 -0400 (EDT) From: Peter Philipp To: Tom cc: Paulo Fragoso , freebsd-stable@FreeBSD.ORG Subject: Re: Finger and getpwent In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tom I think you should look deeper into the getpw* functions when you say /etc/passwd isn't used for anything and /etc/master.passwd is. I'm dissapointed you did not mention /etc/spwd.db and /etc/pwd.db which are the databases accessed by getpw*(). As far as /etc/*passwd is concerned those are great for building the databases and administrative duties but other than that don't really serve a point. Yes /etc/master.passwd is used for pwd_mkdb to build the databases so it serves a purpose other than that I can't think of any. As for Paolo, commenting out users is a nono, if you want to lock an account make sure the first character of the pw_passwd field is a *. This is usually the easiest method. Peter Philipp (PP2441) Globalserve System Administration "How I wish you were here..." - Pink Floyd On Fri, 10 Jul 1998, Tom wrote: > > On Fri, 10 Jul 1998, Paulo Fragoso wrote: > > > Hi, > > > > I don't know if seding message to correct list. But after upgrade from > > FBSD 2.2.2 to FBSD 2.2.6-stable something moved. In my /etc/passwd file > > there are lots of coments "#" and getpwent() return 0 after read this > > line. I have some scripts in perl that stops when getpwent() return 0. > > In FBSD 2.2.2 when getpwent() returned 0 meant end of file /etc/passwd. > > I hope you realize that /etc/passwd isn't used for anything. All users > should be listed in /etc/master.passwd. You should used vipw to edit > /etc/master.passwd > > Tom > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message