gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 23:06:50 27 4
gpt4 key购买 nike

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

$ 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com