Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.conf

Tags:

ftp-server

I don't know why it cannot open config file.

$ 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

Here is vsftpd.conf,and it works well other linux machines(centos) but this one?Any help would be appreciated..

# 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
like image 312
ahuigo Avatar asked Jul 30 '13 08:07

ahuigo


People also ask

Where is the vsftpd config file?

By default, vsftpd looks for this file at the location /etc/vsftpd. conf. However, you may override this by specifying a command line argument to vsftpd. The command line argument is the pathname of the configuration file for vsftpd.

What is the vsftpd in Linux?

vsftpd, very secure FTP daemon, is an FTP server for many Unix-like systems, including Linux, and is often the default FTP server for many Linux distributions as well. vsftpd is beneficial for optimizing security, performance, and stability.


2 Answers

Use service vsftpd [start/restart/stop], not simply vsftpd [start/restart/stop]

like image 129
goodies Avatar answered Sep 27 '22 00:09

goodies


It is problem about file's owner. U should set correct owner for config /etc/vsftpd/vsftpd.conf

sudo chown root /etc/vsftpd/vsftpd.conf
like image 44
ahuigo Avatar answered Sep 23 '22 00:09

ahuigo