# Building a basic FTP server

**URL:** <https://rubytalk.org/t/building-a-basic-ftp-server/21501>\
**Category:** ruby-talk\
**Created:** [12 October 2005 09:54 UTC](https://rubytalk.org/t/building-a-basic-ftp-server/21501 "2005-10-12T09:54:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_Razvan\_NICA](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@George\_Razvan\_NICA](https://rubytalk.org/u/George_Razvan_NICA)\
**Post date:** [12 October 2005 09:54 UTC](https://rubytalk.org/t/building-a-basic-ftp-server/21501/1 "2005-10-12T09:54:56Z")

</div>

Hello everyone,

I need to implement a basic FTP server. Requested features are:

\* anonymous ftp access (or simply no login)  
\* chroot user to a specific directory  
\* client must be able to upload files  
\* no "LIST", "RETR", "DELE", "CWD", "PWD", "RMD", "MKD", etc.  
\* server must support concurrent uploads from different clients

Hopefully, someone has already written something like this or can point me to the right place to start. A working code snippet would be very useful.

TIA,  
George Razvan NICA

---

<div class="post-metadata">

**Author:** ![James\_Edward\_Gray\_II](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@James\_Edward\_Gray\_II](https://rubytalk.org/u/James_Edward_Gray_II)\
**Post date:** [12 October 2005 13:04 UTC](https://rubytalk.org/t/building-a-basic-ftp-server/21501/2 "2005-10-12T13:04:13Z")

</div>

Are you aware of Net::FTP in the standard library? I don't know how far it would get you to the above list, but if nothing else it should be the place to steal ideas from. 😉

James Edward Gray II

> **···**
>
> On Oct 12, 2005, at 4:54 AM, George Razvan NICA wrote:
> 
> > Hello everyone,
> > 
> > I need to implement a basic FTP server. Requested features are:
> > 
> > \* anonymous ftp access (or simply no login)  
> > \* chroot user to a specific directory  
> > \* client must be able to upload files  
> > \* no "LIST", "RETR", "DELE", "CWD", "PWD", "RMD", "MKD", etc.  
> > \* server must support concurrent uploads from different clients
> > 
> > Hopefully, someone has already written something like this or can point me to the right place to start. A working code snippet would be very useful.
