linux虚拟用户创建目录权限不足,Linux下配置的FTP服务器,创建了虚拟用户的文件,当将用户文件生成为数据文件时,用db_load语句时出错...

满意答案

。。。。你先给那个目录所有权限 然后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分享举报

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值