我不知道为什么它不能打开配置文件。
$ 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
发布于 2014-02-10 11:24:40
这是关于文件所有者的问题。应该为配置/etc/vsftpd/vsftpd.conf
设置正确的所有者。
sudo chown root /etc/vsftpd/vsftpd.conf
发布于 2014-04-14 10:00:48
使用service vsftpd [start/restart/stop]
,而不仅仅是vsftpd [start/restart/stop]
发布于 2014-11-09 00:16:23
根据操作系统的不同,您可能会得到以下错误,因为运行的命令不正确。例如,我在Linux 15中运行了以下命令:
sudo vsftpd restart
我收到的产出是:
500 OOPS: cannot read config file: restart
重新启动vsftpd守护进程的更正命令是:
sudo restart vsftpd
这给出了输出:
vsftpd start/running, process 2231
https://stackoverflow.com/questions/17942075
复制相似问题