Sample Header Ad - 728x90

vsftpd won't start: "systemd[1]: vsftpd.service: main process exited, code=exited, status=2/INVALIDARGUMENT"

12 votes
5 answers
114308 views
I have Rapsberry Pi B+ with Arch Linux installation. uname reports version: [computer@computer001 ~]$ uname -a Linux computer001 3.18.3-3-ARCH #1 PREEMPT Mon Jan 26 20:10:28 MST 2015 armv6l GNU/Linux I've installed ftp server via pacman -S vsftpd and installation has passed without any errors. Then I tried to configure it, which resulted in following vsftpd.conf: anonymous_enable=NO local_enable=YES write_enable=YES #local_umask=022 anon_upload_enable=NO anon_mkdir_write_enable=NO dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES chown_uploads=YES chown_username=computer #xferlog_file=/var/log/vsftpd.log #xferlog_std_format=YES #idle_session_timeout=600 #data_connection_timeout=120 #nopriv_user=ftpsecure #async_abor_enable=YES #ascii_upload_enable=YES #ascii_download_enable=YES ftpd_banner=Welcome to personal ftp service. #deny_email_enable=YES #banned_email_file=/etc/vsftpd.banned_emails #chroot_local_user=YES #chroot_list_enable=YES #chroot_list_file=/etc/vsftpd.chroot_list ls_recurse_enable=YES listen=YES #listen_ipv6=YES Now, when I try to restart vsftpd, I get: [computer@computer001 etc]$ sudo systemctl restart vsftpd.service && systemctl status -l vsftpd.service * vsftpd.service - vsftpd daemon Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 1970-01-01 06:32:24 UTC; 112ms ago Process: 350 ExecStart=/usr/bin/vsftpd (code=exited, status=2) Main PID: 350 (code=exited, status=2) Here is also output of sudo journalctl | grep -i vsftp: Jan 01 06:32:24 computer001001 sudo: computer001 : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/bin/systemctl restart vsftpd.service Jan 01 06:32:24 computer001001 systemd: Starting vsftpd daemon... Jan 01 06:32:24 computer001001 systemd: Started vsftpd daemon. Jan 01 06:32:24 computer001001 systemd: vsftpd.service: main process exited, code=exited, status=2/INVALIDARGUMENT Jan 01 06:32:24 computer001001 systemd: Unit vsftpd.service entered failed state. Jan 01 06:32:24 computer001001 systemd: vsftpd.service failed. Here is unit script /usr/lib/systemd/system/vsftpd.service: [Unit] Description=vsftpd daemon After=network.target [Service] ExecStart=/usr/bin/vsftpd ExecReload=/bin/kill -HUP $MAINPID KillMode=process [Install] WantedBy=multi-user.target If I run sudo /usr/bin/vsftpd, I get following error: 500 OOPS: config file not owned by correct user, or not a file I have corrected file permissions for /etc/vsftpd.conf via sudo chown root:root /etc/vsftpd.conf and now manually server gets started. I am also aware date/time is not correct, I haven't setup it yet.What am I missing?
Asked by KernelPanic (1276 rep)
Jan 27, 2015, 09:25 PM
Last activity: Jun 22, 2025, 01:51 PM