NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Dewdman42's avatar
Dewdman42
Virtuoso
May 22, 2012

pureftpd configuration on ReadyNAS

Anyone know if its possible to change the ftp port for pureftpd to something other than 2121?

I tried editing the following file under SSH:

/etc/pure-ftpd/conf/Bind


which contains this by default:

0.0.0.0,2121


I changed 2121 to a different port, ie something like 39021. It worked for a while on the new port but suddenly later the file reverted back to the original value of 2121, I have no idea how. I had turned pure-ftdp on and off a view times in frontview but I did not remove it or reinstall it. But it seems that in some cases the Bind file is getting over written by some other config somewhere.

Anyone have an idea about this?

3 Replies

Replies have been turned off for this discussion
  • more questions about pure-ftpd config:

    How can I configure pure-ftpd to hide .<file> hidden files? Googling around I found references to creating the following two config files, with the values of yes or no inside, but they don't seem to have an effect:


    /etc/pure-ftpd/conf/DisplayDotFiles
    /etc/pure-ftpd/conf/ProhibitedDotFilesRead


    Does anyone have any more information about how to configure pure-ftpd on the ReadyNAS with stuff like this? Its not very clear to me how pure-ftpd is meant to be configured in general or whether the ReadyNAS has another layer of addon stuff that is overwriting things. The pureftp docs refer to the ability to use a wrapper, and supposedly some example config files that can drive the wrapper, since pureftp is supposed to include options on the command line. But those seem to have been left out of WhoCare's addon and I'm having a hard time understanding how the /etc/pure-ftpd/conf dir is meant to be used at runtime, etc. Lots of confusing information on the web about it

    Any help at all for how to configure pure-ftpd on the ReadyNAS would be appreciated.

    thanks
  • also does anyone know if its possible to configure pure-ftpd so that only virtual users can get into it, no system users?
  • Dewdman42 wrote:
    also does anyone know if its possible to configure pure-ftpd so that only virtual users can get into it, no system users?


    I found solution for this, requires SSH.


    1. cd /etc/pure-ftpd/conf/

      • Edit or create the file called UnixAuthentication, make sure it contains value "no"

        • Edit or create the file called PAMAuthentication, make sure it contains value "no"

          • restart pure-ftpd:
            /etc/init.d/pure-ftpd restart

          • Alternatively, if you want to still use some system users but force the priority to be virtual users first, then instead of doing the above, do this:


            1. cd /etc/pure-ftpd/auth/

              • This dir contains symbolic links which determine the order of different authentication techniques that are used during ftp login, rename them however you like, using the correct numbers at the beginning to influence the order of auth attempts. Make sure ExtAuth is first to force virtual user first.

          NETGEAR Academy

          Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

          Join Us!

          ProSupport for Business

          Comprehensive support plans for maximum network uptime and business peace of mind.

           

          Learn More