vsftpd error

错误记录:

  • vsftpd start error

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    [root@localhost ~]# systemctl start vsftpd.service
    Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and "journalctl -xe" for details.
    [root@localhost ~]# journalctl -xe
    [root@localhost ~]# journalctl -xe
    --
    -- Unit vsftpd.service has failed.
    --
    -- The result is failed.
    Nov 24 11:38:33 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
    Nov 24 11:38:33 localhost.localdomain systemd[1]: vsftpd.service failed.
    Nov 24 11:38:33 localhost.localdomain polkitd[503]: Unregistered Authentication Agent for unix-process:21102:6146111 (system bus name :1.53, object path /org/freede
    Nov 24 11:39:09 localhost.localdomain polkitd[503]: Registered Authentication Agent for unix-process:21111:6149749 (system bus name :1.54 [/usr/bin/pkttyagent --not
    Nov 24 11:39:09 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
    -- Subject: Unit vsftpd.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit vsftpd.service has begun starting up.
    Nov 24 11:39:09 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
    Nov 24 11:39:09 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
    -- Subject: Unit vsftpd.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit vsftpd.service has failed.
    --
    -- The result is failed.

    解决方法:
    1.当前网络如果不支持IPV6
    [root@localhost ~]# vim /etc/vsftpd/vsftpd.conf
    listen_ipv6=NO
    [root@localhost ~]# systemctl start vsftpd.service
  • vsftp 553 error

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    是由于目录权限问题引起:
    [root@localhost ~]# ls -ld /mnt/ftpdata/
    drwxr-xr-x 4 root root 29 Jan 10 09:48 /mnt/ftpdata/

    [root@localhost ~]# ls -ld /mnt/ftpdata/ssp
    drwxr-xr-x 3 root root 21 Jan 10 10:13 /mnt/ftpdata/ssp

    [root@localhost ~]# ls -ld /mnt/ftpdata/ssp/20170110
    drwxrwxrwx 5 root root 41 Jan 10 10:12 /mnt/ftpdata/ssp/20170110

    [root@localhost ~]# ls -ld /mnt/ftpdata/ssp/20170110/*
    drwxr-xr-x 2 vsftpduser vsftpduser 6 Jan 10 10:12 /mnt/ftpdata/ssp/20170110/lttest
    drwxr-xr-x 2 vsftpduser vsftpduser 6 Jan 10 10:13 /mnt/ftpdata/ssp/20170110/prod
    drwxr-xr-x 2 vsftpduser vsftpduser 6 Jan 10 10:12 /mnt/ftpdata/ssp/20170110/test