[*] Rob Hardy writes:
] I'm having a fun time trying to get wu.ftpd to compile with
] shadow passwords. Is it setup for shadow passwords? Is there some
] easy way to get it to compile for shadow passwords?
(I assume you are using the shadow-3.3.1 package.)
Yes it's possible. Here is a way:
1) Define SHADOW_PASSWORD in src/config/config.lnx
2) If you have defined DOUBLESIZE in shadow-3.3.1's configuration, then:
Edit src/ftpd.c to change crypt(passwd, salt) to
pw_encrypt(passwd, salt) . You can add some defines around it.
pw_encrypt() comes with shadow-3.3.1 and encrypts 16char password
if DOUBLESIZE is defined.
If you have not defined DOUBLESIZE in shadow-3.3.1's configuration,
then editing ftpd.c shouldn't be necessary (not tested).
3) Then build lnx as usual. (The programs needs to link with libshadow.a)
The above is what I used to do to many programs. Because I have chosen
DOUBLESIZE, I have to make sure the program calls pw_encrypt instead
I have since changed my setup to NOT use DOUBLESIZE, and installed
only "passwd" from shadow-3.3.1. All other relevant programs (su,
login, wu-ftpd, xdm, ...) are compiled without shadow password
support. The shadow password support comes transparently from libc,
which one has to compile from source with SHADOW_COMPAT defined.
I think this is a good solution. I have no problems so far....
Delman Lee Tel.: +1-215-662-6780
Medical Image Processing Group Fax.: +1-215-898-9145