Eric Lu

ProFTPD on Mac

July 09, 2018 | 0 Minute Read

I didn't expect to find it so hard to run ProFTPD as a daemon on the Mac. Without further ado, here is the right `Launchctl` script to get it running on startup on MacOS 10.13 High Sierra.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>KeepAlive</key>
      <true/>
    <key>Label</key>
      <string>org.proftpd.proftpd</string>
    <key>ProgramArguments</key>
      <array>
        <string>/usr/local/sbin/proftpd</string>
        <string>-n</string>
      </array>
    <key>RunAtLoad</key>
      <true/>
    <key>StandardOutPath</key>
      <string>/tmp/proftpd.log</string>
    <key>StandardErrorPath</key>
      <string>/tmp/proftpd.err</string>
  </dict>
</plist>

Save the above script as /Library/LaunchDaemons/org.proftpd.proftpd.plist. You probably need to use sudo.

$ sudo launchctl load /Library/LaunchDaemons/org.proftpd.proftpd.plist

A slightly outdated example is provided at ProFTPD: Stopping and Starting.