Needed: pcnfsd that knows about /etc/shadow

Jim Deitch jdeitch at jadpc.cts.com
Wed Feb 27 02:53:10 AEST 1991


In article <15478 at uudell.dell.com> sblair at upurbmw.dell.com (Steve Blair) writes:
>[a customer emailed this fix to us, thought it'd share it]
>
>Here's a quick and simple way to avert any problems with pcnfsd.c A message
>from someone posted to comp.unix.sysv386 clued me in on what was going on.
>pcnfsd, as distributed by SUN, doesn't support shadow password files. It 
>uses getpwnam() to get the /etc/passwd entry for a particular user. Under your
>UNIX, the passwd structure returned does not include the encrypted password. 
>Because of this, it didn't have a password to compare against the one I was
>passing over from the PC NFS client and so it failed the mount every time. 
>To correct this, I added code to pcnfsd.c (source to which is distributed with
>SUN's PC-NFS and FTP Software's PC/TCP) to additionally call getspnam() to 
>access the shadow password file to retrieve the user's password. This was 
>a trivial modification. 
>
>
>
>
>-- 
>Steve Blair	DELL	UNIX	DIVISION sblair at upurbmw.dell.com
>================================================================

You will find this true of most of the bsd stuff.  I ported pop and
uucpd from BSD and had to do the mods.  Be advised that the structures
between passwd and shadow are a little different, along with the
routines that you have to use.

Jim

-- 
ARPANET:    jadpc!jdeitch at nosc.mil
INTERNET:   jdeitch at jadpc.cts.com
UUCP:	    nosc!jadpc!jdeitch



More information about the Comp.unix.sysv386 mailing list