• vsftp虚拟账户设置


    创建虚拟帐号后,使用命令行和工具访问均会因为ssh报密码错误,使用文件目录访问即可。

    ----深深的痛啊,为什么pam之后的虚拟用户本地sftp 无法登录呢?。

    Oct 12 18:56:04 fort sshd[32858]: Invalid user pso1 from 127.0.0.1
    Oct 12 18:56:04 fort sshd[32859]: input_userauth_request: invalid user xxx
    Oct 12 18:56:05 fort sshd[32858]: pam_unix(sshd:auth): check pass; user unknown
    Oct 12 18:56:05 fort sshd[32858]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost
    Oct 12 18:56:05 fort sshd[32858]: pam_succeed_if(sshd:auth): error retrieving information about user xxx
    Oct 12 18:56:08 fort sshd[32858]: Failed password for invalid user pso1 from 127.0.0.1 port 53565 ssh2
    Oct 12 18:56:09 fort sshd[32859]: Connection closed by 127.0.0.1

    vi vsftpd.conf 全局权限
    anonymous_enable=NO
    local_enable=YES
    write_enable=YES
    local_umask=022
    guest_enable=YES
    guest_username=vftp
    user_config_dir=/etc/vsftpd/vftp/config
    dirmessage_enable=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    xferlog_file=/home/ftp/filetp/log/vsftpd.log
    xferlog_std_format=YES
    ftpd_banner=Welcome to Asia ftp
    listen=YES
    pam_service_name=vsftpd
    userlist_enable=YES
    tcp_wrappers=YES
    chroot_local_user=YES


    -------------------------------------------------
    Administrator 本地目录/home/ftp/filetp 读写,创建目录 重命名 上传 下载

    local_root=/home/ftp/filetp
    write_enable=YES
    download_enable=YES
    anon_upload_enable=YES
    anon_mkdir_write_enable=YES
    anon_other_write_enable=YES
    anon_world_readable_only=NO

    -------------------------------------------------
    PMADMIN 本地目录/home/ftp/filetp/pmadmin 读写,创建目录 重命名 上传 下载

    local_root=/home/ftp/filetp/pmadmin
    write_enable=YES
    download_enable=YES
    anon_upload_enable=YES
    anon_mkdir_write_enable=YES
    anon_other_write_enable=YES
    anon_world_readable_only=NO

    -------------------------------------------------
    PM1 本地目录/home/ftp/filetp/pmadmin/pm1 读写,创建目录 重命名 上传 下载

    local_root=/home/ftp/filetp/pmadmin/pm1
    write_enable=YES
    download_enable=YES
    anon_upload_enable=YES
    anon_mkdir_write_enable=YES
    anon_other_write_enable=YES
    anon_world_readable_only=NO

    -------------------------------------------------
    PSO 本地目录/home/ftp/filetp/Product_Training_Template 读写,创建目录 重命名 上传 下载

    local_root=/home/ftp/filetp/Product_Training_Template
    write_enable=YES
    download_enable=YES
    anon_upload_enable=YES
    anon_mkdir_write_enable=YES
    anon_other_write_enable=YES
    anon_world_readable_only=NO

  • 相关阅读:
    详解Bootstrap进度条组件
    详解Bootstrap缩略图组件及警示框组件
    详解Bootstrap表单组件
    spring注解-@Autowired。@Resource。@Service
    spring注解-@Transactional事务几点注意
    17_8_9 Spring 注入
    MySQL常用语句
    Mysql 远程登录及常用命令
    数据库(外键及其约束理解)
    C语言队列(数组内核)
  • 原文地址:https://www.cnblogs.com/jonyq/p/5954934.html
Copyright © 2020-2023  润新知