Skip to main content
Visitor II
January 6, 2023
Solved

Proftpd package on OpenSTLinux repository.

  • January 6, 2023
  • 1 reply
  • 1027 views

Hi all ~

I'm going to use proftpd to support FTP server.

first, I installed proftpd package from OpenSTLinux repository. 

apt-get install proftpd 

And I tried to run proftpd with my configuration file.

but I got some error like below. 

proftpd[5128]: fatal: unknown configuration directive 'AuthUserFile' 

As far as I know, proftpd has several modules related each features.

And the module I need is mod_auth_file. 

so I checked proftpd's module list like below.

But there is no mod_auth_file module I want. 

root@stm32mp1-prox-mx670:/home/hantas# proftpd -vv
ProFTPD Version: 1.3.7c (maint)
 Scoreboard Version: 01040003
 Built: Mon Aug 30 2021 00:22:56 UTC
 
Loaded modules:
 mod_auth_pam/1.2
 mod_facts/0.6
 mod_delay/0.7
 mod_site.c
 mod_log/1.0
 mod_ls.c
 mod_auth.c
 mod_auth_unix.c
 mod_rlimit/1.0
 mod_xfer.c
 mod_core.c

proftpd man page is described that mod_auth_file module is compiled by default.

But there is option to disable mod_auth_file module at compile time. (--disable-auth_file)

so I think, proftpd package offered by OpenSTLinux repository has above option. 

In this case, is there any way to add proftpd module I want?

Or, Do I need to add proftpd recipe on my distribution package?

I'm not used to use yocto recipe yet.

Thank in advance for your answer. 

    This topic has been closed for replies.
    Best answer by Jean-Marc B

    Hi @hochul yoo​ 

    The recipe proftpd integrated into the OpenSTLinux distribution comes from the layer meta-openembedded (recipe meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb).

    This recipe indeed disables by default the mod_auth_file module through the package configuration:

    PACKAGECONFIG[auth] = "--enable-auth-file, --disable-auth-file"

    To enable it, you have to create a bbappend recipe proftpd_1.3.7c.bbappend in your own layer and to update the PACKAGECONFIG variable as followed:

    PACKAGECONFIG:append = " auth"

    Best regards,

    --JM

    1 reply

    ST Employee
    January 6, 2023

    Hi @hochul yoo​ 

    The recipe proftpd integrated into the OpenSTLinux distribution comes from the layer meta-openembedded (recipe meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb).

    This recipe indeed disables by default the mod_auth_file module through the package configuration:

    PACKAGECONFIG[auth] = "--enable-auth-file, --disable-auth-file"

    To enable it, you have to create a bbappend recipe proftpd_1.3.7c.bbappend in your own layer and to update the PACKAGECONFIG variable as followed:

    PACKAGECONFIG:append = " auth"

    Best regards,

    --JM