Mac Siera
Siera remove ftp serivice
must use sftp (ssh)
Using sftp by Finder mounting
$ sshfs -p22 -o allow_other,defer_permissions userid@ipaddr:/path1 /Users/me/mnt/path1
1. Max OS Default FTP Server
default package : tnftpd
ftp service On/Off
ftp user add
ftp user directory
by Terminal
/bin/launchctl load -w /System/Library/LaunchDaemons/ftp.plist
/bin/launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
chroot
# vi /etc/ftpchroot
*
================================================
2. pure-ftpd
# vi /System/Library/LaunchDaemons/ftp.plist
<?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>Disabled</key>
<false/>
<key>Label</key>
<string>com.apple.ftpd</string>
<key>Program</key>
<string>/usr/local/sbin/pure-ftpd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/pure-ftpd</string>
<string>-I</string>
<string>15</string>
<string>-c</string>
<string>15</string>
<string>-H</string>
<string>-L</string>
<string>2000:5</string>
<string>--fscharset=UTF-8-MAC</string>
<string>--clientcharset=EUCKR</string>
<string>-lpuredb:/etc/pure-ftpd/pureftpd.pdb</string>
<string>-lpam</string>
<string>-j</string>
<string>-E</string>
<string>-i</string>
<string>-Oclf:/var/log/pureftpd.log</string>
<string>-Y</string>
<string>0</string>
<string>-U</string>
<string>133:022</string>
</array>
<key>SHAuthorizationRight</key>
<string>system.preferences</string>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>Bonjour</key>
<true/>
<key>SockServiceName</key>
<string>ftp</string>
</dict>
</dict>
<key>inetdCompatibility</key>
<dict>
<key>Wait</key>
<false/>
</dict>
</dict>
</plist>