NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Nico68
Aug 21, 2015Aspirant
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 f...
StephenB
Aug 21, 2015Guru - Experienced User
This link should work (at least it does for me): https://community.netgear.com/t5/New-to-ReadyNAS-archive/FTP-lock-users-to-home/td-p/705765
If you still can't see it, let me know and I will copy/paste it on this thread.
Nico68
Aug 29, 2015Aspirant
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
- StephenBAug 29, 2015Guru - 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 itNote: 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 executablechmod 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- Nico68Sep 03, 2015Aspirant
Thanks Stephen
Yes my NAS is pretty old but works fine^^
This look very brutal, as you noticed it
I will look if I can live with the actual settings or not
Many thanks for your help
byebye
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!