You are not logged in.

#1 2007-06-01 11:20:08

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Simple FTP server

I just turned my old computer into a web server, LAMP stack so far and all is going very smoothly.

Now I have been getting by through wiki articles and forum posts, but as far as setting up an FTP server goes, I couldn't find any documentation (or very little) on the subject.

I don't need anything advanced, just something so I can fire up my ftp client, navigate to.. ftp.mysite.org, user name and password, then login and upload files to my website.

Setting up of servers is rather new to me, so I have no clue on how easy/hard this will be.


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#2 2007-06-01 11:49:01

hungsonbk
Member
Registered: 2007-05-26
Posts: 105
Website

Re: Simple FTP server

big_smile:D:DVery Secure FTP Daemon is your choice. It it secure and simple to set up.
Pacman -S vsftpd
Then Edit the /etc/vsftpd.conf. There are many documents on the internet about vsftpd. Search and set up your own server.

Offline

#3 2007-06-01 12:30:25

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Simple FTP server

Ok, so I installed it, edited the conf file, open the ports (21 and 20) then started the daemon and I still cant connect to ftp.192.168.1.101

vsftpd.conf

# Example config file /etc/vsftpd.conf
#
# Use this to use vsftpd in standalone mode, otherwise it runs through (x)inetd
listen=YES


anonymous_enable=YES
#

local_enable=YES
#

write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES

# Activate logging of uploads/downloads.
xferlog_enable=YES

# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES

Any ideas....


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#4 2007-06-01 12:33:56

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: Simple FTP server

I'm sure you tried ftp://192.168.1.101/ and not ftp://ftp.192.168.1.101/, didn't you?

Are you trying to access your server from the same subnet or from "outside"?


Haven't been here in a while. Still rocking Arch. smile

Offline

#5 2007-06-01 12:44:34

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: Simple FTP server

>> edit: what he said ^^ ^ big_smile

you might also want to get a domain mapped to your external IP with something like no-ip.com or dyndns.com and then try with the name.

----------------------------------------

Crooksey wrote:

Ok, so I installed it, edited the conf file, open the ports (21 and 20) then started the daemon and I still cant connect to ftp.192.168.1.101

try it without the ftp., or try ftp://

$ lftp -u <user> 192.168.1.101
$ lftp -u <user> ftp://192.168.1.101

Last edited by slackhack (2007-06-01 12:47:11)

Offline

#6 2007-06-02 18:11:12

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Simple FTP server

Sigi wrote:

I'm sure you tried ftp://192.168.1.101/ and not ftp://ftp.192.168.1.101/, didn't you?

Are you trying to access your server from the same subnet or from "outside"?

I really do fail at tasks sometimes, thanks for sorting me out smile

Now... How can i make it so that the FTP lists files from

/home/httpd/

Last edited by Crooksey (2007-06-02 18:15:41)


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#7 2007-06-02 18:27:46

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Simple FTP server

my advice. Don't use ftp.
Use sftp instead. Not only is it FAR more secure, it also goes through more firewalls.

http://en.wikipedia.org/wiki/SSH_file_transfer_protocol

ftp is a blight that needs to be exterminated.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#8 2007-06-09 02:48:25

carrouf
Member
Registered: 2007-01-06
Posts: 34

Re: Simple FTP server

I would suggest proftpd, with gproftpd as a frontend.
That's what I am using and I am quite happy with that.


Regards/

Offline

Board footer

Powered by FluxBB