pure-ftpd-1.0.21 ftp server

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

pure-ftpd-1.0.21 ftp server

#1 Post by Nathan F »

I have hada lot of problems in Puppy2 using betaftpd, and from scanning the forums it seems that others have been having problems with it as well. I wanted to have something that was pretty bulletproof and easy, so I compiled pure-ftpd. This was compiled from within OneBone, no special options.

To run type 'pure-ftpd &'
for anonymous ftp just create a system user named 'ftp'

Code: Select all

adduser ftp -h /root/ftp
You could replace '/root/ftp' with any directory you prefer. Pure-ftpd will automatically serve files out of the ftp user's home directory if it exists.
To stop just find the pid and kill it

Code: Select all

#ps | grep pure-ftpd
21124 root        600 S      pure-ftpd
# kill 21124
download:
ftp://texasangel.org/pub/unleashed_pack ... .21.tar.gz
includes docs in /usr/share/doc
installs as an alien package in Pupget

Nathan
Last edited by Nathan F on Fri 30 Jun 2006, 07:59, edited 1 time in total.
Bring on the locusts ...

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

ftp://192.168.1.100/pub/unleashed_packa ... .21.tar.gz

That is the adress of your local server. ;)
192.168 is the local network, and can not be externally accessed.

Pro-ftp is nice, tried it in Linux-Mandriva long time ago.

Mark

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#3 Post by Nathan F »

Apologies, I'll fix the link.

Nathan
Bring on the locusts ...

r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#4 Post by r__hughes »

Hi Nathan - thanks for working on the pure-ftpd server.
I downloaded the pure-ftpd-1.0.21.tar.gz into pup201SM which is bootloaded on my W98 system with pup4dos.

I installed it as an alien pupget package without problems - but when I try to run with 'pure-ftpd &' I get

~# pure-ftpd &
[1] 4870
~#

There is no sign of any 'pure-ftpd' process running

Note my root shell is bash hence the prompt - when I tried to adduser ftp -h /root/ftp it told me user already existed, presumably from betaftpd server which also created /root/ftp folder.

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#5 Post by Nathan F »

Code: Select all

~# pure-ftpd & 
[1] 4870 
~#
The pid is 4870, your server is running. Check it by going to ftp://localhost/ or in a console 'telnet localhost 21'. It's on my todo list to create a simple control panel but haven't done so yet.

Let me know if any other problems.

Nathan
Bring on the locusts ...

r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#6 Post by r__hughes »

It's looking good Nathan, I've got it running on a pup201sm and I'm able to download folders full of files (with no errors :D) to a pup109ce using Gftp client.

Uploads of files from the 109pupclient is also 100% error free - but at present I can't upload folders or delete anything from the server - I'm going to have to check the docs.

So far I've xferred binaries, MP3s, jpgs, doc, txt files of up to 4Mb size in my first few tests - it's looking very good :D

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#7 Post by Nathan F »

I used man2html to get the docs in shape quick, so have a look in /usr/share/doc/pure-ftpd and it may have an answer for that. Right now I haven't used it enough to know. It would be nice to get that figured out, so if you discover the secret please share.

I have had a lot of other projects going the last few days and only gave this a cursory job at packaging at best. Glad it's working for you for the most part. One other thing, will it let you write over files on the server when doing an upload?

Nathan
Bring on the locusts ...

r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#8 Post by r__hughes »

'pure-ftpd -M &' allows me to upload folders
and create folders on the server (as anonymous user)

MKD testfolder
257 "testfolder" : The directory was successfully created

but I'm not allowed to overwrite, rename or delete :-

PASV
227 Entering Passive Mode (192,168,0,101,178,91)
STOR /VBOX stuff/bootlog200/bootlog_2.txt
553 Anonymous users may not overwrite existing files

RNFR pci.txt
550 Anonymous users are not allowed to move/rename files

DELE /VBOX stuff/pci.txt
550 Anonymous users can not delete files

still checking the docs ------------

r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#9 Post by r__hughes »

addendum - - - - -

I've been using pure-ftpd server with pup201sm now on each of the 4 computers in my LAN for the best part of a week, starting it by

Code: Select all

pure-ftpd -M &
which I put in /root/.xinitrc just ahead of the final

Code: Select all

exec $CURRENTWM
This brings up pure-ftp server at bootup. By the way it stores its process number in /var/run/pure-ftpd.pid

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#10 Post by Nathan F »

It might be better to execute this from rc.local, I think when X exits anything run from .xinitrc will be killed as well. Not sure, I could be wrong.

I'll write a control panel pretty soon, so it's good to know where the pid file is at. Saves me having to search for it. Anyway, that makes stopping the server easier, just do

Code: Select all

kill `cat /var/run/pure-ftpd.pid`
Thanks for the feedback. I'm running it on a couple computers in the lan too, makes transferring files a lot easier.

Nathan
Bring on the locusts ...

r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#11 Post by r__hughes »

Nathan said
It might be better to execute this from rc.local, I think when X exits anything run from .xinitrc will be killed as well. Not sure, I could be wrong.
I say - OOPS - You're quite correct - I lost the ftp server when I escaped to the prompt-line (Ctl-Alt-B/Space). .Xinitrc is a definite NO-NO.

All is well & connection is kept when the start code is put in /etc/rc.d/rc.local

User avatar
Fallen
Posts: 9
Joined: Wed 16 Aug 2006, 05:40
Location: Hamilton, Oh.
Contact:

running pure-ftpd

#12 Post by Fallen »

ok i got it installed so whats next? how do i start the ftp server for anyone to access, and how do i add a administrative user so i can upload or delete files from anywhere? please make it simple to understand i am new to linux, but i have a little understanding.

User avatar
phpbbviet
Posts: 3
Joined: Fri 18 Aug 2006, 00:23

#13 Post by phpbbviet »

hi!

how i can change port to 2222 or config ?

jeffrey
Posts: 168
Joined: Mon 16 Jan 2006, 04:20
Location: Christchurch, New Zealand

#14 Post by jeffrey »

I can't see a valid download URL for pure-ftp above.
Nathan, did you "fix it"?
Would someone please re-post it for me?
Thanks,
Jeffrey.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#15 Post by MU »

attached
Attachments
pure-ftpd-1.0.21.tar.gz
(73.59 KiB) Downloaded 619 times

jeffrey
Posts: 168
Joined: Mon 16 Jan 2006, 04:20
Location: Christchurch, New Zealand

#16 Post by jeffrey »

Curiously I get
IE cannot download download.php?id=2805
IE was not able to open this site - either unavailable or not found.
On the other hand I had no problem downloading rsh.tar.gz, download # 2806.
Is this my problem or yours?
Jeffrey

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#17 Post by MU »

I can download it in Mozilla, but here is an alternate link:
http://dotpups.de/diverse-tgz/pure-ftpd-1.0.21.tar.gz
Mark

jeffrey
Posts: 168
Joined: Mon 16 Jan 2006, 04:20
Location: Christchurch, New Zealand

#18 Post by jeffrey »

Thanks, Mark, but that didn't work either.
However I managed it fine from home.
Must have been an over-zealous company firewall.
Jeffrey.

Post Reply