ftp-server - 500 哎呀 : cannot open config file:/etc/vsftpd/vsftpd. session

标签 ftp-server

我不知道为什么它无法打开配置文件。

$ ll /etc/vsftpd/vsftpd.conf
-rw-r--r-- 1 xuehui1 root 4182 Aug 20  2012 /etc/vsftpd/vsftpd.conf //exits
$ sudo /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.conf

这是 vsftpd.conf,它在其他 Linux 机器(centos)上运行良好,但是这个?任何帮助将不胜感激..

# Example config file /etc/vsftpd/vsftpd.conf
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# 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
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
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 have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
use_localtime=YES

最佳答案

这是文件所有者的问题。你应该为配置设置正确的所有者 /etc/vsftpd/vsftpd.conf

sudo chown root /etc/vsftpd/vsftpd.conf

关于ftp-server - 500 哎呀 : cannot open config file:/etc/vsftpd/vsftpd. session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17942075/

相关文章:

php - 是否可以在不使用脚本的情况下确定远程 FTP 服务器上的可用空间量?

java - Java中文件传输的FTP客户端服务器模型

c# - Azure云服务嵌入式FTP服务器

python - 如何访问 Amazon EC2 上的 pyftpdlib FTPS 服务器?

java - FTP 客户端不断被服务器拒绝上传权限

java - Apache FTPServer——限制像 'DELE' 这样的命令

php - 在 PHP 脚本所在的目录中的 FTP 服务器上创建文件夹

java - Docker 容器中 FTP 上传文件失败