PDA

Bekijk de volledige versie : Oleg firmware ftp help



trxtrx
23-11-2008, 11:12
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é

Tamadite
23-11-2008, 12:07
I thought this section was for tutorials only...

trxtrx
23-11-2008, 12:13
maybe my fault,

i saw other users making questions here, i supposed it was the right place. :confused:

trxtrx
23-11-2008, 12:15
ok,

placed the question under q/a

sorry for this

newbiefan
23-11-2008, 12:39
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:

/usr/sbin/vsftpd /tmp/etc/vsftpd.conf
store your changed post-boot/post-mount and add to your /tmp/local/.files

tmp/etc/vsftpd.conf

copy your changed/adjusted vsftpd.conf from your pc to /tmp/etc/vsftpd.conf

now one point remains:

flashfs save && flashfs commit && flashfs enable

and just a hint: same thing with samba, just use instead:

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 enable

After a regular
reboot your router should work as expected.

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

Gerdi
26-01-2009, 15:30
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.)

newbiefan
26-01-2009, 20:01
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

trxtrx
16-04-2009, 13:47
Hello,

first of all, thank you for the answer :) appreciated. 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é

c3ll
16-04-2009, 17:43
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