vsftp fail to start

vsftp dose not work in my machine. I try to restart vsftp by command

sudo /etc/init.d/vsftpd restart

but it failed:

Shutting down vsftpd                                                         done
Starting vsftpd startproc:  exit status of parent of /usr/sbin/vsftpd: 1                     failed

Any suggestion?
Thanks in advance.

Look for errors in the /var/log/messages file.

Good luck,
Hiatt

Checked it just now but couldn’t see any error or warning message.

Look for a vsftpd specific log file, perhaps /var/log/vsftpd.log.

Maybe apparmor is in the way?

Try this


sudo /etc/init.d/boot.apparmor stop
sudo /etc/init.d/vsftpd restart

Good luck,
Hiatt

Couldn’t find vsftpd.log even search from / by root user. Seems vsftpd.log is not created.

No improvement. Same failed message after running sudo /etc/init.d/vsftpd restart.

Maybe you should post your vsftpd.conf so that someone can look at it.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

here:

write_enable=YES
dirmessage_enable=YES
nopriv_user=ftpsecure
local_enable=YES
chroot_local_user=YES
anonymous_enable=NO
anon_world_readable_only=YES
syslog_enable=YES
connect_from_port_20=YES
ascii_upload_enable=YES
pam_service_name=vsftpd
ssl_enable=NO
pasv_min_port=30000
pasv_max_port=30100

What happens when you do this?


sudo /usr/sbin/vsftpd

Good luck,
Hiatt

It says:

500 OOPS: vsftpd: not configured for standalone, must be started from inetd

flyspring wrote:

> Code:
> --------------------
> write_enable=YES
> dirmessage_enable=YES
> nopriv_user=ftpsecure
> local_enable=YES
> chroot_local_user=YES
> anonymous_enable=NO
> anon_world_readable_only=YES
> syslog_enable=YES
> connect_from_port_20=YES
> ascii_upload_enable=YES
> pam_service_name=vsftpd
> ssl_enable=NO
> pasv_min_port=30000
> pasv_max_port=30100
> --------------------
>
Add a line
listen=YES
and try again


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

On 2011-05-24 16:06, flyspring wrote:
>
> vsftp dose not work in my machine. I try to restart vsftp by command
>
> Code:
> --------------------
> sudo /etc/init.d/vsftpd restart
> --------------------

The correct procedure would be:


su -
rcvsftpd restart

or

service vsftpd restart


(This is not Ubuntu).

And make sure you have:


syslog_enable=YES

in the config. Otherwise, you have to figure out where it logs to.

However, unless you have configured vsftpd to start this way, by default in
openSUSE vsftpd is started via xinetd, not via startup script.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Except for the giveaway sudo indicating Ubuntu training, but perfectly legit, /etc/init.d/vsftpd start is in fact the official LSB way of doing it and most likely to work on all distros.

rcvsftpd is a SUSE extension, if you look it’s actually a symlink to /etc/init.d/vsftpd.

service is a wrapper script to make transition easier for people coming from Redhat.

@flyspring: how are you configuring vsftpd? Did you install yast2-ftp-server and do it from YaST? Or did you edit the vsftpd.conf file manually?

Carlos E. R. wrote:

> The correct procedure would be:
>
>


> su -
> rcvsftpd restart
>
no doubt this is correct but without any kind of listen=YES in the conf file
it will fail also.

--
PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

On 2011-05-25 00:14, martin_helm wrote:
> Carlos E. R. wrote:

> no doubt this is correct but without any kind of listen=YES in the conf file
> it will fail also.

Nope :slight_smile:

I don’t have it and it works. It must be the default.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 2011-05-25 00:36, ken yap wrote:
>
> robin_listas;2344383 Wrote:

> Except for the giveaway sudo indicating Ubuntu training, but perfectly
> legit, /etc/init.d/vsftpd start is in fact the official LSB way of doing
> it and most likely to work on all distros.

But, AFAIK, it is not how it is configured out of the rpm in openSUSE. It
will not work here :slight_smile:

It comes configured for use via xinet.

> rcvsftpd is a SUSE extension, if you look it’s actually a symlink to
> /etc/init.d/vsftpd.

I know. And because I know I use it and tell others to use it. Much
shorter. I hate all that typing >:-)

> service is a wrapper script to make transition easier for people coming
> from Redhat.

Yep.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 2011-05-25 01:20, Carlos E. R. wrote:
> On 2011-05-25 00:14, martin_helm wrote:
>> Carlos E. R. wrote:
>
>> no doubt this is correct but without any kind of listen=YES in the conf file
>> it will fail also.
>
> Nope :slight_smile:
>
> I don’t have it and it works. It must be the default.

Correction. Without it, it is intended to run via xinet. That is what the
comments say:



# Set listen=YES if you want vsftpd to run standalone
#
# listen=YES


I understand that “standalone” means as service daemon.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Carlos E. R. wrote:

> On 2011-05-25 00:14, martin_helm wrote:
>> Carlos E. R. wrote:
>
>> no doubt this is correct but without any kind of listen=YES in the conf
>> file it will fail also.
>
> Nope :slight_smile:
>
> I don’t have it and it works. It must be the default.
>
Maybe because you start via xinet and have a completely different (and
valid) combination of settings.

I speak here about EXACTLY the conf file from the OP and not about anything
in general vsftp related.

This is what I tested (the file from the jhiatt08) with and without
listen=YES via rcvsftpd and /etc/ini.t/vsftpd (which both are identical in
openSUSE), without it gives the message the OP showed us and with the
setting it starts.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram