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

posted @ 2016-10-13 00:26  JonyQ  阅读(1055)  评论(1编辑  收藏  举报