Sign up here and you can log into the forum!

Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)

Here is the place to inquire about app.bins--Only currently available apps for sigma 8655 based wdtv's belong in this forum. requests go in 'Application Questions'

Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby recliq » Sun Oct 17, 2010 7:50 am

Hi,
i got something to play with for those of you running ext3-live or .rootFS version of WDLXTV-Live...
An app.bin replacing existing pure-ftpd for flashed FW may follow...

Here it is ;)

Pure-FTPd 1.0.29 binaries including pure-pw and virtual user support.
Supplied binaries:
    pure-authd
    pure-ftpd
    pure-ftpwho
    pure-mrtginfo
    pure-pw
    pure-pwconvert
    pure-quotacheck
    pure-statsdecode
    pure-uploadscript

I modified /etc/init.d/S75pure-ftpd to add command line options set in /conf/config:FTPD_OPTIONS.

Example for using virtual users:
This will set up a ftpuser testuser with /tmp/media/usb as home dir but access to the whole filesystem.

Code: Select all
pure-pw useradd testuser -u nobody -D /tmp/media/usb -f /conf/pureftpd.passwd

Code: Select all
pure-pw mkdb /conf/pureftpd.pdb -f /conf/pureftpd.passwd

Code: Select all
config_tool -c FTPD_OPTIONS='-l puredb:/conf/pureftpd.pdb'

Code: Select all
/etc/init.d/S75pure-ftpd restart


See pure-ftpd documentation for more information.

Adding TLS support:
First you need to create a certificate file for pure-ftpd:
Code: Select all
openssl req -x509 -nodes -newkey rsa:1024 -config /etc/ssl/openssl.cnf -keyout /conf/pure-ftpd.pem -out /conf/pure-ftpd.pem

When asked for Common Name (eg, YOUR name) [] you should enter the hostname of your wdtv, all other questions can be answered by <RETURN> or some (fictional) information.

Make sure the file gets saved:
Code: Select all
config_tool -s

Add TLS option (to existing puredb setting, to add only TLS support -Y 1 should be enough):
Code: Select all
config_tool -c FTPD_OPTIONS='-l puredb:/conf/pureftpd.pdb -Y 1'


Restart pure-ftpd:
Code: Select all
/etc/init.d/S75pure-ftpd restart


:mrgreen:
Attachments
pure-ftpd-1.0.29.app.bin.zip
Pure-FTPd-1.0.29-TLS
(318.71 KiB) Downloaded 552 times
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby RMerlin » Sun Oct 24, 2010 10:19 am

WEC entry added for FTPD_OPTIONS - will ship at the same time as this new feature will :)
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby disaster555666 » Tue Dec 14, 2010 1:17 am

hey
I have a problem with the "pure-ftpd-1.0.29.app.bin" file. I stored this on my extern device into /root. Than I reboot my WDLXTV box and I try do add a virtualuser with pure-pw but it doesn't work

# pure-pw
-sh: pure-pw: not found

I'm shure that ne new bin file wasn't load on my WDLXTV box
what's my mistake?
disaster555666
n00b
 
Posts: 10
Joined: Tue Dec 14, 2010 12:32 am

Re: Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby recliq » Tue Dec 14, 2010 1:21 am

dont put the file in a folder /root but in the root of the drive.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby disaster555666 » Tue Dec 14, 2010 1:46 am

sry but I have expressed myself wrong. I have the file in the root of the drive not in a folder ;) I have the "WDLXTV-Live-0.4.2.2 – maintenance release" is that a problem because this version includs pure-ftpd? Or schould the pure ftpd version 1.0.29-TLS overwrite the pure-ftpd verions on my WDLXTV box ?!
disaster555666
n00b
 
Posts: 10
Joined: Tue Dec 14, 2010 12:32 am

Re: Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby recliq » Tue Dec 14, 2010 1:55 am

disaster555666 wrote:sry but I have expressed myself wrong. I have the file in the root of the drive not in a folder ;) I have the "WDLXTV-Live-0.4.2.2 – maintenance release" is that a problem because this version includs pure-ftpd? Or schould the pure ftpd version 1.0.29-TLS overwrite the pure-ftpd verions on my WDLXTV box ?!

Never tested the app.bin with such an old release... it may not work but should.

Make sure the app.bin got loaded, have a look at /apps dir if app.bin got mounted...
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby disaster555666 » Tue Dec 14, 2010 2:08 am

Oh I thaught that's newest release. Which would make you recommend me?
I have at /apps a folder "pure-ftpd-1.0.29" but this is empty is that normaly?
disaster555666
n00b
 
Posts: 10
Joined: Tue Dec 14, 2010 12:32 am

Re: Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby recliq » Tue Dec 14, 2010 2:10 am

disaster555666 wrote:Oh I thaught that's newest release. Which would make you recommend me?
I have at /apps a folder "pure-ftpd-1.0.29" but this is empty is that normaly?

No, it should contain some dirs...

Try latest WDLXTV version (0.4.3.1), you can test with ext3 root.bin before flashing it, put root.bin and app.bin on same drive.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby disaster555666 » Tue Dec 14, 2010 2:16 am

thx I will test it later when I'm at home. Than I can say if it work or not :)
disaster555666
n00b
 
Posts: 10
Joined: Tue Dec 14, 2010 12:32 am

Re: Pure-FTPd 1.0.29-TLS (incl. Virtual User Support)   

Postby disaster555666 » Tue Dec 14, 2010 6:33 am

hey

Now I have ext3 version 0.4.2.2 on my box the pure-ftpd-1.0.29.app.bin.zip is in root from my drive too but the folder "/apps/pure-ftpd-1.0.29" is empty...
disaster555666
n00b
 
Posts: 10
Joined: Tue Dec 14, 2010 12:32 am

Next

Return to WDLXTV-G2 & WDLXTV-Live/Plus app.bins

Who is online

Users browsing this forum: No registered users and 2 guests