add an vsftp user in linux

来源:互联网 发布:股票分析 python 编辑:程序博客网 时间:2024/04/28 23:53

///////////增加一个ftp 用户
useradd nanguaftp
passwd nanguaftp
xxxxxxxxx

////////////////////增加一个ftp 用户并限制其登录目录
useradd -d /home/www/mall/scb -M ftpuser
passwd ftpuser
xxxxxxxxxxxxx

///////////测试////////////
[root@dzsw mall]# ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (127.0.0.1:root): nanguaftp
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

原创粉丝点击