满意答案
。。。。你先给那个目录所有权限 然后lftp 上去 就能在那个目录下 读写执行了 你把有一行 有21的 注释给取消了 就好了吧
当然 你的创建好文件夹拉 关拉iptables 和 selinux
然后lftp上去肯定行 具体 的匿名用户 怎么配置 我的就是开拉上传和下载 就是刚装好的 就开了几个注释 直接用
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
ftp 默认监听端口是21 20 tcp/ip协议 那些协议用的 是1到1024的端口 你只能用1024以后的 具体怎么改 你看下鸟哥把 忘拉 那个是原来 学习的 时候 玩过 。。。
鸟哥地址:
10分享举报