2016年12月4日日曜日

ubuntu,xampp,proftp,ユーザー追加

    ubuntuでxampp入れて使うとftpがproftpでwordpressのプラグインとかで躓く
    
    proftp_ユーザ管理 - 自宅サーバWiki
    
    /usr/local/etc/proftpd.conf (sudo vim /opt/lampp/etc/proftpd.conf) に
    
    #以下を追記
    AuthUserFile                   /usr/local/etc/ftp.passwd
    AuthGroupFile                  /usr/local/etc/ftp.group
    AuthOrder                      mod_auth_file.c
    UseFtpUsers                    off
    RequireValidShell              off
    
    その後、hogeユーザーだったら
    
    sudo /opt/lampp/bin/ftpasswd --passwd \
    --file=/usr/local/etc/ftp.passwd --name=hoge --uid=65534 --gid=65534 \
    --home=/home/hoge -shell=/bin/bash
    
    でパスワード設定