Mac OS X ftpd

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

  owl 2015-06-28 19.21.36            

ftp user add

owl 2015-06-28 19.22.09  

ftp user directory

스크린샷 2016-03-23 오후 9.40.11 스크린샷 2016-03-23 오후 9.40.18  

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>

owl 2015-06-28 22.43.43 owl 2015-06-28 22.43.48 owl 2015-06-28 22.43.52