|
update:
Finally been successful at this. Surprisingly simple. NOTE: This is on a Linkstation Live V2 (LS-CHL). Everything you do is totally at your own risk. The idea behind it simply to change the script which replaces your proftpd.conf on reboot to no longer do so.
WARNING: if you do this, any changes to ftp configuration in the web interface will no longer have an effect. I.E. you're gonna have to manage the whole thing from the console from now on.
So, here's what I did:
Step 1: - Go to /etc/init.d/ - "cp ftpd.sh newftpd.sh" - this makes a copy of ftpd.sh that WON'T be replaced automatically on reboot, which is what we want.
Step 2: - "vi newftpd.sh" - delete line 17 where it says "/usr/local/sbin/nas_configgen -c proftpd" - this removes the code which automatically reverts your proftpd.conf - it has to be done in a totally different script as ftpd.sh is also replaced on reboot. - save changes and exit newftpd.sh
Step 3: - "cp rcS oldrcS" (taking a backup, just in case)
Step 4: - "vi rcS" - go to line 90 - see where it says "ftpd.sh"? replace that that with newftpd.sh - this tells it to load your new, edited ftpd initializer script, which no longer replaces proftpd.conf - save changes and exit rcS
Step 5: - edit /etc/proftpd/proftpd.conf - your changes will no longer be reverted on reboot.
I hope this helps!
|