wu.ftpd + shadow passwd possible?

wu.ftpd + shadow passwd possible?

Post by Delman L » Fri, 18 Nov 1994 08:22:33



 [*] 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
of crypt.

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.
--
______________________________________________________________________

  Delman Lee                             Tel.: +1-215-662-6780
  Medical Image Processing Group         Fax.: +1-215-898-9145

______________________________________________________________________

 
 
 

wu.ftpd + shadow passwd possible?

Post by Rob Har » Fri, 18 Nov 1994 04:36:36


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?

If I can't use it is there some way that I can have users use both
without having to change the port?

I mean I could put wu.ftpd on ftp port and it would only allow
anonymous and put in.ftpd on some higher port that would allow normal
ftp for users but this kind of clumbsy.

--
-----------------------------------------------------------------------
Robert Hardy  Voice|Data:(613)226-(2326|8665)  CCS Computer Consultant


              "Linux the Choice of a GNU Generation!"
-----------------------------------------------------------------------

 
 
 

1. wu.ftpd + shadow passwd possible?

What sort of problem are you having with shadow passwords?

I have built and run wu-ftp with shadow passwords and no problems.

Cheers,
Stephen.

========================================================================

Adelaide, South Australia.                           Voice: 61-8-2728863
Computing & Network solutions.                       Fax  : 61-8-2741015

2. Run a infinite loop script.

3. wu.ftpd problem with shadow password

4. Java and Linux ?

5. HELP: shadow and wu.ftpd

6. RAM Doubler

7. Shadow Passwords and wu-ftpd

8. need help with RPM 3.0 install

9. wu-ftpd 2.4.2 beta 12 with Shadow...AND Messages.

10. wu-ftpd and shadowed passwords

11. Shadow password for wu.ftpd

12. wu-ftpd and /etc/shells (shadow passwords)

13. wu.ftpd with shadow-support