V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
iscraft
V2EX  ›  Linux

求助:vsftpd 虚拟用户无法更改文件权限?

  •  
  •   iscraft · 2014-09-24 09:41:48 +08:00 · 5500 次点击
    这是一个创建于 3501 天前的主题,其中的信息可能已经有所发展或是发生改变。
    上传下载删除等都没有问题 就是在filezilla中对文件权限进行更改的时候就提示

    命令: SITE CHMOD 755 rand.txt
    响应: 550 SITE CHMOD command failed.

    vsftpd配置如下:
    -------------------------
    # cat /etc/vsftpd/vsftpd.conf
    guest_enable=YES
    guest_username=ftp
    user_config_dir=/etc/vsftpd/vuser_conf
    virtual_use_local_privs=YES
    pam_service_name=/etc/pam.d/vsftpd
    #
    pasv_enable=YES
    pasv_min_port=40000
    pasv_max_port=40080
    pasv_promiscuous=YES
    #
    chroot_list_file=/etc/vsftpd/vuser_password
    chmod_enable=YES

    -------------------------------
    # cat /etc/vsftpd/vuser_password
    aaa
    123456
    bbb
    123456
    ccc
    123456


    ---------------------------------
    # cat /etc/pam.d/vsftpd
    auth required pam_userdb.so db=/etc/vsftpd/vuser_password
    account required pam_userdb.so db=/etc/vsftpd/vuser_password
    -------------------------------------
    # cat /etc/vsftpd/vuser_conf/aaa

    local_root=/var/www/html/aaa
    write_enable=YES
    anon_umask=022
    anon_world_readable_only=NO
    anon_upload_enable=YES
    anon_mkdir_write_enable=YES
    anon_other_write_enable=YES

    ----------------------------------
    # ll /var/www/html
    total 48
    drwxrwxrwx 13 root ftp 4096 Aug 20 10:21 aaa

    请熟悉linux的朋友帮忙看下配置哪里出现了错误
    2 条回复    2014-09-25 17:10:22 +08:00
    rqrq
        1
    rqrq  
       2014-09-24 23:01:39 +08:00
    试试
    #chown -R ftp:ftp /var/www/html
    iscraft
        2
    iscraft  
    OP
       2014-09-25 17:10:22 +08:00
    @rqrq 谢谢 但问题依然存在
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3303 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:51 · PVG 20:51 · LAX 05:51 · JFK 08:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.