Wind River Support Network

HomeDefectsLIN5-2208
Fixed

LIN5-2208 : vsftpd /var/share/empty dir creation issue

Created: Sep 4, 2013    Updated: Dec 19, 2017
Resolved Date: Sep 26, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8,5.0.1.8
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

The /var/share/empty directory was originally missing from the target and defect WIND00421293 filed for this.

The fix has the directory created as part of the startup script:

  /etc/init.d/vsftpd

as follows:

        if ! test -d /var/share/empty; then
            mkdir -p /var/share/empty
            chmod u+w /var/share/empty
        fi

This works fine if using this script to start the daemon, but it's better to use xinetd instead. Since xinetd calls the vsftpd binary directly the script is not run and therefore the directory is not created.

Workaround

Manually create the directory or use the default method to start vsftpd.

Steps to Reproduce

Configure a standard project which includes xinetd and vsftpd
build and boot the target
Use the following xinetd script to enable vsftpd start:

service ftp
{
        socket_type	= stream
        wait		= no
        user                    	= root
        server                  	= /usr/sbin/vsftpd
        server_args             	= /etc/vsftpd/vsftpd.conf
        nice                    	= 10
        disable                 	= no 
        flags                   	= IPv4
}

Start xinetd and try to connect to the ftp server from a remote machine. Note that the same problem now occurs as was originally presented in WIND00421293.

Other Downloads


Live chat
Online