Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Make pure-ftpd work with authentication UNIX
If you need to get pure-ftpd working with OS X, you need to use PAM. In order to make PAM work, you'll need to do the following (for now):
 % ln -s /usr/include/pam /usr/include/security
Then configure and build pure-ftpd (you can play with options to configure, this is just a example):
 % ./configure --with-everything --with-paranoidmsg 
 --without-capabilities --with-virtualchroot --with-pam
 % make install
Create a /etc/xinetd.d/ftp file similar to this one (this one allows root access for testing only):
service ftp
{
        disable = no
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/local/sbin/pure-ftpd
        server_args     = -A -E -lpam
        groups          = yes
        flags           = REUSE
}
Create a /etc/pam.d/pure-ftpd file:
# pure-ftpd: auth account password session
auth       required       pam_nologin.so
auth       sufficient     pam_securityserver.so
auth       sufficient     pam_unix.so
auth       required       pam_deny.so
account    required       pam_permit.so
password   required       pam_deny.so
session    required       pam_uwtmp.so
Restart xinetd:
 % kill -HUP `cat /var/run/xinetd.pid`
That should be enough to make it work.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,456 views]  

Make pure-ftpd work with authentication | 4 comments | Create New Account
Click here to return to the 'Make pure-ftpd work with authentication' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make pure-ftpd work with authentication
Authored by: Johnny_B on Nov 20, '03 11:37:06AM

I did mine with

./configure --with-everything --without-inetd --sysconfdir=/etc pure-ftpd --enable-osx --with-tls

And I've had no problems, tls even works, but there are a GREAT lack of ftp clients that support it on our platform. I've only found cli clients to support it. But you don't have to use, you just have the choice to use it.

I'm on Panther.



[ Reply to This | # ]
Make pure-ftpd work with tls
Authored by: sjosen on Nov 27, '03 04:40:24PM

How did you get it to compile with the tls option. I get an error about openssl headers not found



[ Reply to This | # ]
...or
Authored by: nihil on Nov 21, '03 04:20:50AM
....or you could just install PureFTPd manager :)

[ Reply to This | # ]
...or
Authored by: Johnny_B on Nov 21, '03 02:01:44PM

I actuall first installed "PureFTPd manager", then I applied the lastest version over it, build with the same options as the author of "PureFTPd manager" build "PureFTPd" with.

But, in the newer versions "pure-ftpwho" is with xml, which made the "PureFTPd manager" app not so happy (I couldn't see what was going on). But then I just reapplied the old "pure-ftpwho" from the older version with ships with "PureFTPd manager" using Pacifist, and I haven't had any troubles with that.



[ Reply to This | # ]