1 | |
---|
2 | |
---|
3 | ------------------------ MACOS X SPECIFIC NOTES ------------------------ |
---|
4 | |
---|
5 | |
---|
6 | To get Pure-FTPd authenticate against system users on MacOS X (at least |
---|
7 | since version 10.3) you need to use PAM. |
---|
8 | |
---|
9 | The version you are running, installed by MacPorts, has had the --with-pam |
---|
10 | option enabled at compile time. To setup pam authentication follow the steps |
---|
11 | below for our OS version. |
---|
12 | |
---|
13 | For Mac OS X 10.5 |
---|
14 | Create a /etc/pam.d/pure-ftpd file: |
---|
15 | |
---|
16 | # pure-ftpd: auth account password session |
---|
17 | auth sufficient pam_securityserver.so |
---|
18 | auth required pam_deny.so |
---|
19 | account required pam_permit.so |
---|
20 | password required pam_deny.so |
---|
21 | session required pam_permit.so |
---|
22 | |
---|
23 | For Mac OS X 10.6 |
---|
24 | Create a /etc/pam.d/pure-ftpd file: |
---|
25 | |
---|
26 | # pure-ftpd: auth account password session |
---|
27 | auth sufficient pam_opendirectory.so |
---|
28 | auth required pam_deny.so |
---|
29 | account required pam_permit.so |
---|
30 | password required pam_deny.so |
---|
31 | session required pam_permit.so |
---|
32 | |
---|
33 | |
---|
34 | Start the FTP server: |
---|
35 | - '-l <authentication>' or '-l <authentication>:<config file>': Adds a new |
---|
36 | rule to the authentication chain. Please read the "Authentication" section, |
---|
37 | later in this README file. It's an important section. |
---|
38 | - '-B': Have the standalone server start in background (daemonization). |
---|
39 | |
---|
40 | $ @PREFIX@/sbin/pure-ftpd -lpam -B |
---|