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

Forum Discussion

Nico68's avatar
Nico68
Aspirant
Aug 21, 2015

ReadyNAS NV+ FTP loose user.conf at reboot

Hello everyone

 

I try to figure out why ReadyNAS overwrites my FTP user.conf settings at each reboot

 

it seems there is a way to modify the original one but I can't access to that part of the forum

 

"http://www.readynas.com/forum/viewtopic.php?t=23735"

 

if someone could help me to fix this problem

 

thanks

 

Nicolas

4 Replies

Replies have been turned off for this discussion
    • Nico68's avatar
      Nico68
      Aspirant

      Hello Stephen B and many thanks for your reply

       

      Unfortunately for this part of the community I get a message "Access denied" even if I log with my username and password

       

       

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        Nico68 wrote:

        Hello Stephen B and many thanks for your reply

         

        Unfortunately for this part of the community I get a message "Access denied" even if I log with my username and password

         

         


        Must be limited to mods for some reason...

         

        These posts are very old, and were specific to the NV+ v1 platform.  I haven't tried the techniques so I don't know if they need adaptation for other platforms (or even newer firmware on the v1).  I'm not endorsing them, just copying them as a courtesy...

         

        Lichon provides the basic technique, but becks discovered that the adjustments were overwritten on reboot, and uses a brute force method to prevent that.  

         

        Here's the relevant posts:

         

        first Lichon (dated 2008-12-11)

        Tired of having to move into "homes/<user>/" every time you login on the ReadyNAS FTP ?
        If you have the SSH addon can you change that.

        You need root privileges.
        1) vi /etc/frontview/proftpd/User.conf
        2) Edit "DefaultRoot ~ftp" to "DefaultRoot ~ftp/homes/%u"
        3) Save file. Then you need to apply this change to the FTP server, which is possible without restarting it
        4) /etc/init.d/proftpd reload
        5) Thats it. Login to test it

        Note: This WILL prevent you from accessing FTP-enabled shares.

         

         

        Then from becks, dated ‎2009-09-17:

         

        Ok,
        found a way how to override the feature of the ReadyNAS. Might work in another way, but it did the trick for me.

        You need root SSH Access to do this. Login, change to /etc/init.d and create a new file called fixproftpd:


        #!/bin/sh
        #
        # fix ReadysNAS default settings for proftpd

        /bin/sleep 60
        /bin/cp /root/scripts/User.conf /etc/frontview/proftpd/

        #Apply settings
        /etc/init.d/proftpd reload


        make the file executable

        chmod 755 /etc/init.d/fixproftpd




        change to /etc/rc3.d and create a symlink for the file:

        cd /etc/rc3.d
        ln -s ../init.d/fixproftpd S99fixproftpd



        change to /root, create a subdirectory called scripts, change to this directory and create a file called User.conf here. This file must contain the valid configuration of your ftp server.

        cd /root
        mkdir scripts
        cd scripts
        cp /etc/frontview/proftpd/User.conf .




        Everytime you reboot the NAS, the script overwrites the default settings again. I had to use the command sleep to cause some delay as it looks like the default User.conf is created by a program which is also automatically launched and needs some time to finish its job.

        Alex

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