Log in

Bekijk de volledige versie : How to run ftp and/or samba without usb disk plugged-in?



likeapear
09-10-2005, 18:06
I want to share some wl-500g system directories via ftp and/or samba. Is it possible without usb disk plugged-in? Tried /usr/sbin/stupid-ftpd, but it requires /tmp/stupid-ftpd.conf (this file is not exists after reboot). /usr/sbin/smbd -D /usr/sbin/nmbd -D doesn't work for me...:(

PS: Using Oleg's 1.9.2.7-6b firmware

macsat
10-10-2005, 09:45
I want to share some wl-500g system directories via ftp and/or samba. Is it possible without usb disk plugged-in? Tried /usr/sbin/stupid-ftpd, but it requires /tmp/stupid-ftpd.conf (this file is not exists after reboot). /usr/sbin/smbd -D /usr/sbin/nmbd -D doesn't work for me...:(

PS: Using Oleg's 1.9.2.7-6b firmware


Try to add the file /tmp/stupid-ftpd.conf to /usr/local/.files - like :


echo "/tmp/stupid-ftpd.conf >> /usr/local/.files

likeapear
10-10-2005, 18:10
Try to add the file /tmp/stupid-ftpd.conf to /usr/local/.files - like :


echo "/tmp/stupid-ftpd.conf >> /usr/local/.files

Thank you for reply. But seems to stupid-ftpd is using /tmp/stupid-ftpd.conf as primary configuration file...

Other question:
Is there any way to set some commands which will be executed after reboot? Sorry for this "easy" question, but I really don't know how to do it. Thanks.

dev
19-10-2005, 21:04
try "stupid-ftp --help"

solution:
(1.)
stupid-ftpd -f /usr/local/.files/stupid-ftpd.conf


or (2.)
set in post-boot :

cp /usr/local/.files/stupid-ftpd.* /tmp/
stupid-ftpd