Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple FTP server in Under 5 Minutes or LESS (Newb Guide)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Hara
Apprentice
Apprentice


Joined: 25 Jan 2004
Posts: 162

PostPosted: Fri Aug 27, 2004 5:47 pm    Post subject: Simple FTP server in Under 5 Minutes or LESS (Newb Guide) Reply with quote

This guide is for any ftp newb who wants the most basic anonymous ftp server so they can share files either on the internet or on their local network (if they are behind a firewall such as a home router) and access it using a web browser like firefox.

Assumming you have a network connection and logged in as root

Code:
# emerge pure-ftpd


Hopefully you have a computer fast enough to compile this small package in under 5 minutes.

Next

Code:
# mkdir /home/ftp


This is the folder to put your shared files.

You should already have a user "ftp" in the /etc/passwd file. If not you can create one with the passwd command and give it the home directory /home/ftp.

Start the server with

Code:
# pure-ftpd &


And your done! Enjoy! :)

Note: To give out your ip address to your friends use ifconfig to find out what it is (need to be root)

Code:
# ifconfig


Than just type in a web browser ftp://192.168.1.101 or whatever the ip address is

If you want anything more than that, than it probably will take more than 5 minutes (or not) but than you are experienced enough to read documentation and understand it on their website.
_________________
Hara

(Mandrake->Slackware->LFS(Never Finished)->Gentoo)
Back to top
View user's profile Send private message
johntramp
Guru
Guru


Joined: 03 Feb 2004
Posts: 457
Location: New Zealand

PostPosted: Wed Sep 01, 2004 11:18 am    Post subject: Reply with quote

Hi, nice easy guide, worked fine.
Q. how secure is this? if I was to share my files over this ftp is there any way someone could modify them?
Back to top
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Wed Sep 01, 2004 11:31 am    Post subject: Reply with quote

Just give the shared directory read access and no, they wont be able to change them.
_________________
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Back to top
View user's profile Send private message
johntramp
Guru
Guru


Joined: 03 Feb 2004
Posts: 457
Location: New Zealand

PostPosted: Sun Sep 12, 2004 6:45 am    Post subject: Reply with quote

and if I was to want an uploads folder would I chmod 660 it?
Back to top
View user's profile Send private message
galenjr
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2004
Posts: 88
Location: Connecticut, USA

PostPosted: Sun Sep 12, 2004 6:53 am    Post subject: Reply with quote

Well if its an anonymous ftp server and you want anonymous people to be able to upload to it id say chmod 777. 660 is owner, group read/write access. for anonymous ftp i imagine you'd need owner,group,other to have read/write/execute access.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum