Subject: bin/2566: pwd_mkdb works only on /etc/*, sucks when setting up ~ftp
To: None <gnats-bugs@NetBSD.ORG>
From: Hubert Feyrer <>
List: netbsd-bugs
Date: 06/24/1996 22:58:24
>Number:         2566
>Category:       bin
>Synopsis:       pwd_mkdb works only on /etc/*, sucks when setting up ~ftp
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 24 17:20:02 1996
>Originator:     Hubert Feyrer
	FH Regensburg, Germany
>Release:        1.1
System: NetBSD smaug 1.1 NetBSD 1.1 (SMAUG) #4: Tue May 14 20:58:29 MET DST 1996 feyrer@smaug:/tmp_mnt/grizu/usr3/usr_src/sys/arch/sparc/compile/SMAUG sparc

	When setting up ~ftp, one needs /etc/pwd.db in order to get
	the ls-command working (not /etc/passwd, as stated by the ftpd
	man page, i'll send-pr this seperately). Now when building 
	that pwd.db from a stripped-down version of the full /etc/master.passwd,
	it's not too easy getting the pwd.db done.

	cp /etc/master.passwd ~ftp/etc
	vi ~ftp/etc/master.passwd
	pwd_mkdb -p ~ftp/etc/master.passwd

	-> nukes your /etc/*

	Add a switch to pwd_mkdb to specify the directory where the files
	pwd.db, and (if -p is also given) passwd are generated.

	Also, if giving a dir is not optimal (as probably all those file
	names are read from header files and as such include the "/etc"),
	a root-directory instead of a directory might be given, in the
	case of ftpd then ~ftp.