I thought this section was for tutorials only...
Hello all,
i have a question to make if you can help me.
is it possible for oleg to make an option in web GUI / ftp option, to enable/ disable FXP support for vsftpd? i ask this because when using ftp configuration on asus (oleg) gui, i can create my ftp server, point it to a directory but i cant change vsftpd.conf to add fxp configuration.
each time i reboot router, vsftpd.cong get restored to original.
maybe i dont know how to change original oleg firmware vsftpd.conf, or maybe i dont know how to get it saved permanently.
can anyone help me out?
i managed to get vsftpd working by using the how to's in this forum. but i believe it was more easy for non-linux guys to have the option for it under web-GUI.
regards,
josé
I thought this section was for tutorials only...
maybe my fault,
i saw other users making questions here, i supposed it was the right place.![]()
ok,
placed the question under q/a
sorry for this
Well, when ftp is enabled, you cannot change vsftp.conf. After reboot, all changes are gone....but there is a simple way....
And here is the way to change the vsftp.conf:
-disable vsftp in your webif, but copy before your vsftp.conf to your pc
-edit vsftpd on your pc to your needs
-change your post-boot or post-mount (right before calling rc.unslung)
and start vsftpd by adding:
store your changed post-boot/post-mount and add to your /tmp/local/.filesCode:/usr/sbin/vsftpd /tmp/etc/vsftpd.conf
copy your changed/adjusted vsftpd.conf from your pc to /tmp/etc/vsftpd.confCode:tmp/etc/vsftpd.conf
now one point remains:
and just a hint: same thing with samba, just use instead:Code:flashfs save && flashfs commit && flashfs enable
After a regularCode:echo "/usr/sbin/smbd -D >> /tmp/local/sbin/post-boot" echo "/usr/sbin/nmbd -D >> /tmp/local/sbin/post-boot" vi /tmp/etc/smb.conf (edit to your needs & store) echo "tmp/etc/smb.conf >> /tmp/local/.files" flashfs save && flashfs commit && flashfs enableyour router should work as expected.Code:reboot
Don't forget, you have to add each changed file to your /tmp/local/.files
and store to your flash with:
flashfs save && flashfs commit && flashfs enable
Just a good guideline:http://wlhdd.co.uk/wiki/VSFTP_Guides
have fun
Last edited by newbiefan; 23-11-2008 at 12:45.
Alle HowTo's, all howto's
RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n
Why do you write your configuration to /tmp/etc/vsftpd.conf if you want it to be persistent?
When I used vsftp they were in /opt/etc/vsftpd.conf.
This isn't lost after reboot, even without changes in post--boot
(I don't use ftp any more. I use sftp. It's much easier.)
vsftpd.conf is written to /tmp/etc because it is in this directory by default.
Hence there is no need to install optware - why install optware, when it's already on your router? Further, when you change your hdd or stick, vsftpd is still working. And last, but not least - you can configure it very easy, even with several users and for each user a different directory. No hassle with harddisc crash or defect memory stick - everything is on your router.
Yeah and the name vsftpd tells us: very secure ftp daemon
have fun
Alle HowTo's, all howto's
RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n
Hello,
first of all, thank you for the answerappreciated. i have one question,
what this means and how i do it?
store your changed post-boot/post-mount and add to your /tmp/local/.files
Code:
tmp/etc/vsftpd.conf
José
edit file .files located in /tmp/local/
and paste tmp/etc/vsftpd.conf
save de edited file
and then flashfs save && flashfs commit && flashfs enable
to save and reboot te router
sorry for my bad English but I am Portuguese
................and I have a bad prime minister