From owner-freebsd-questions Fri Nov 1 07:28:13 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA13008 for questions-outgoing; Fri, 1 Nov 1996 07:28:13 -0800 (PST) Received: from jack.colorado.edu (jack.Colorado.EDU [128.138.149.29]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA12999 for ; Fri, 1 Nov 1996 07:28:10 -0800 (PST) Received: from jack (localhost [127.0.0.1]) by jack.colorado.edu (8.7.6/8.7.3/CNS-4.0p) with SMTP id IAA28252; Fri, 1 Nov 1996 08:27:30 -0700 (MST) Message-ID: <327A16E2.64CD@Colorado.EDU> Date: Fri, 01 Nov 1996 08:27:30 -0700 From: "Mark O'Lear" Organization: University of Colorado X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.4 sun4m) MIME-Version: 1.0 To: Craig Shrimpton CC: questions@FreeBSD.org Subject: Re: ls and anon ftp References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Craig Shrimpton wrote: > > Folks, > > Finally have my virtual ftp server running but ls isn't working right. > It needs pwd.db to properly set the user id in anon ftp. I have tried > the following: pwd_mkdb -d /home/craigs /home/craigs/passwd to make a > password db out of a small password file. It tells me the file has a > corrupt entry or is not in a proper format. Is that the correct syntax for > pwd_mkdb or does that need to run under root? That is the correct syntax, but the password file has to be in the master.passwd style, not the passwd style (there are three extra fields - class, change and expire). The only fields that ls actually needs are name and uid, the rest can (should) be blank or garbage. The passwd(5) man page should have the format for the master.passwd file (10 colon separated fields). Also, you shouldn't need to be root (probably a good idea not to be, then you can't accidently wipe the actual password files). -- Mark O'Lear \ e-mail: Mark.Olear@Colorado.EDU University of Colorado \ phone: (303) 492-3798 Telecomm. Svcs. (CB 313) \ fax: (303) 492-5105 Boulder, CO 80309 \