手机版
你好,游客 登录 注册
背景:
阅读新闻

RHEL 虚拟用户 FTP服务器

[日期:2012-11-23] 来源:Linux社区  作者:jiagd [字体:大 中 小]
7.重新启动服务

service vsftpd restart

8.验证:

[root@localhost ~]# ftp 192.168.0.60
Connected to 192.168.0.60.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.0.60:root): testftp //使用testftp登录测试
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,0,60,174,83)
150 Here comes the directory listing.
-rw-r--r-- 1 0 0 0 Oct 27 10:34 testftp.txt
226 Directory send OK. //可以浏览资源
ftp> get testftp.txt
local: testftp.txt remote: testftp.txt
227 Entering Passive Mode (192,168,0,60,181,117)
150 Opening BINARY mode data connection for testftp.txt (0 bytes).
226 File send OK. //下载成功
ftp> put install.log
local: install.log remote: install.log
227 Entering Passive Mode (192,168,0,60,165,227)


550 Permission denied. //上传失败。权限拒绝。。

testftp的所有条件都满足。。。实验成功了!!!

[root@localhost ~]# ftp 192.168.0.60
Connected to 192.168.0.60.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.0.60:root): vipftp //vipftp用户登录测试
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,0,60,104,76)
150 Here comes the directory listing.
drwx------ 2 501 501 4096 Oct 27 10:40 cmd
drwx------ 2 501 501 4096 Oct 27 10:42 kkkkkk
-rw-r--r-- 1 501 501 0 Oct 27 10:35 vipuser.txt
226 Directory send OK. //能浏览资源
ftp> get vipuser.txt
local: vipuser.txt remote: vipuser.txt
227 Entering Passive Mode (192,168,0,60,197,75)
150 Opening BINARY mode data connection for vipuser.txt (0 bytes).
226 File send OK. //下载成功
ftp> put install.log
local: install.log remote: install.log
227 Entering Passive Mode (192,168,0,60,76,88)
150 Ok to send data.
226 File receive OK.
43957 bytes sent in 0.051 seconds (8.4e+02 Kbytes/s) //上传成功
ftp> rm -rf vipuser.txt


550 Permission denied. //不能删除现有资源

呵呵。。是不是所有条件都满足了!!

任务完成!!linux
相关资讯       vsftpd 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款