From: Gary Anderson <ganderson@net.clark>

Mitch,
Well, I'm a little hesitant about tips for shadow users, given the 
potential for great difficulty if something I've said causes someone's 
system to go bonkers ;-)
That said, here's a couple:
(My system is currently Linux-pl15j, w/libc-4.5.19)

1.) Get Florian La Roche's (rzsfl@rz.uni-sb.de) 'shadow-3.3.1.dif' 
patches.

2.) Add a statement to the 'save:' and 'restore:' constructs in the 
patched Makefile for /usr/lib/libshadow.a (just follow the format for the 
other files in those two constructs).

3.) In BIG HUGE LETTERS, emphasize the importance of doing a 'make save' 
before doing anything else.  Then, move the resulting 'save' directory to 
'save.orig' or something similar, to avoid any subsequent over-writes of 
your original shadow setup.

I know all of the above applies to building the shadow-3.3.1 stuff, and 
not to ftpd-diku, but many folks may be doing as I did, upgrading their 
shadow package in order to use ftpd-diku.
	 
Other than that, let's see.  Get Chris Seatory's diku-shadow.  His e-mail 
address bounces, so I don't know where he is now, but the package is on 
the normal linux sites.
In ftpd-diku, I had to diddle some of the includes in ftpd.c, etc., to 
account for the netinet directory going away.  
I commented out the 'check-headers' construct in the Makefile.
Took out 'check-headers' from the 'ftpd' construct in the Makefile.
Took out the -Inetinet flag from the Makefile (per your tip).
In the msgs/welcome.msg, I changed the last line's 'MBytes' to 'Kbytes'.
(My figure comes back '57204' (57 Megs) for free space.)
Here's what my pathnames.h and support/paths.h look like now:

/*
 * Copyright (c) 1989 The Regents of the University of California.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms are permitted
 * provided that: (1) source distributions retain this entire copyright
 * notice and comment, and (2) distributions including binaries display
 * the following acknowledgement:  ``This product includes software
 * developed by the University of California, Berkeley and its contributors''
 * in the documentation or other materials provided with the distribution
 * and in all advertising materials mentioning features or use of this
 * software. Neither the name of the University nor the names of its
 * contributors may be used to endorse or promote products derived
 * from this software without specific prior written permission.
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 *	@(#)pathnames.h	5.2 (Berkeley) 6/1/90
 */

/* #include <paths.h> */
/*#define PINS*/

#include "support/paths.h"

#define	_PATH_FTPUSERS	"/etc/ftpusers"
#define	_PATH_FTPACCESS	"/etc/ftpaccess"
#define	_PATH_PIDNAMES	"/usr/adm/ftpd/pids-%s"
#define	_PATH_XFERLOG	"/usr/adm/ftpd/xferlog"
 
 #ifdef PINS
 #define	_PATH_PINFILE	"/news/tmp/ftpd/pins"
 #define _PATH_PACKAGES	"/news/tmp/ftpd/packages"
 #endif /* PINS */

#ifndef	_PATH_UTMP
#define _PATH_UTMP      "/etc/utmp"
#define _PATH_WTMP      "/etc/wtmp"
#define _PATH_LASTLOG   "/etc/lastlog"
#endif



/*
 * Copyright (c) 1989 The Regents of the University of California.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms are permitted provided
 * that: (1) source distributions retain this entire copyright notice and
 * comment, and (2) distributions including binaries display the following
 * acknowledgement:  ``This product includes software developed by the
 * University of California, Berkeley and its contributors'' in the
 * documentation or other materials provided with the distribution and in
 * all advertising materials mentioning features or use of this software.
 * Neither the name of the University nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 *	@(#)paths.h	5.7 (Berkeley) 6/24/90
 */

#define	_PATH_BSHELL	"/bin/sh"
#define	_PATH_CONSOLE	"/dev/console"
/* #define	_PATH_CSHELL	"/bin/csh" */
#define	_PATH_DEV	"/dev/"
#define	_PATH_DEVNULL	"/dev/null"
/* #define	_PATH_DRUM	"/dev/drum" */
/* #define	_PATH_KMEM	"/dev/kmem" */
#define	_PATH_MAILDIR	"/var/spool/mail"
#define	_PATH_MAN	"/usr/man"
#define	_PATH_MEM	"/dev/mem"
#define	_PATH_NOLOGIN	"/etc/nologin"
#define	_PATH_SENDMAIL	"/usr/sbin/sendmail"
#define	_PATH_TMP	"/tmp/"
#define	_PATH_TTY	"/dev/tty"
/* #define	_PATH_UNIX	"/vmunix" */
#define	_PATH_UNIX	"/zImage"
#define	_PATH_VARTMP	"/var/tmp"
#define	_PATH_VI	"/usr/bin/vi"


I think that about covers it.  Sorry for including the above two files, 
instead of diffs.  Was in a rush, and couldn't locate the originals (and 
haven't gotten around to 'cleaning up' these ;-)       ).


Hope the above is of some use.  Some of the stuff is germain only to 
Linux (i.e. #define _PATH_UNIX "/zImage"), so I don't know how you want 
to handle that.

Gary

