Index of /arch/cc-env/wrap_pwd
      Name                    Last modified       Size  Description

[DIR] Parent Directory 09-Nov-2008 21:49 - [TXT] SIGEN.htm 02-Dec-2008 10:00 1k [   ] wrap_pwd.shar 12-Jan-1999 05:33 17k

	wrap_pwd README
	TOYODA Eizi
	Graduate School of Mathematical Sciences, Univ. Tokyo
	toyoda@ms.u-tokyo.ac.jp
	28 Dec 1997 (last update 14 Aug 1998)

1. INTRODUCTION

	wrap_pwd is wrapper routines set of getpwnam(3) and getpwuid(3)
	that looks up the encrypted shadow passwrod.
	It is useful for porting old unix software, that assumes
	getpwnam(3) or getpwuid(3) to lookup password in /etc/passwd,
	to a new unix (or equivalent) like SunOS 5.x or Debian GNU/Linux.

2. TESTING

	This Makefile is only for TESTING function.
	Firstly, try `ls -l /etc/shadow` (or equivalent) to
	determine what uid and gid is needed.
	Maybe you have to edit Makefile and change ROOTGROUP macro. 

	$ make
	$ su 
	# make setuid		(or # make setgid)
	# exit
	$ make test

3. USAGE

	a. Look up all "#include <pwd.h>" in the source code you are porting.
	b. Insert "#include "wrap_pwd.h" just after them.
	c. Compile wrap_pwd.c.
	d. Make sure your C compiler to link wrap_pwd.o.

4. COPYRIGHT ISSUE