LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2006, 02:17 AM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
Linux Ftp Server


hello all im using UBUNTU linux and i want to know how do i use it to be an FTP server.
 
Old 08-07-2006, 03:24 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
By running ftpd, an ftp daemon that deals with the ftp connections, and configuring your firewalling and ftp to ensure security as well as you can. Running an ftp server should produce no big problems, but making it secure will.

I suggest searching at google and LQ (the Search function) for information about this. And read ftpd man-page.
 
Old 08-07-2006, 04:33 AM   #3
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Rep: Reputation: 15
the most popular ftp daemon r vsftpd and proftpd.
i personally use vsftpd.
all u need to do in ubuntu is :

Quote:
apt-get install vsftpd
then change vsftpd.conf file as ur wish.
 
Old 08-07-2006, 04:48 AM   #4
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
hello doronunu

-they say that VSFTPD is one of the best ftp linux server. so i tried to download it from its website. but the problem is that i have a hard time understanding the incomplete manual the i found on the net on how to install it and there are no more manual i can found very useful.

-and if i will use use the apt-get how do i know which folders contains the files of VSFTPD.

-hope you can help me here.
 
Old 08-07-2006, 04:50 AM   #5
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Using apt-get, I suppose you don't need to know where the files are. apt-get will install the vsftpd program for you. You only need to take a look at the configuration files, which should be in /etc, as usual.
root access will be required to both configure and run the vsftpd service, probably.
 
Old 08-07-2006, 05:40 AM   #6
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Rep: Reputation: 15
as timmeke said the vsftpd.conf file is at /etc or /etc/vsdtpd/
depend on your distro.
this my conf file :
Quote:
listen=YES
anonymous_enable=NO
tcp_wrappers=YES
local_enable=YES
check_shell=NO
pam_service_name=vsftpd
chroot_local_user=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
xferlog_file=/var/log/vsftpd.log
write_enable=YES
ftpd_banner=Welcome to Example.com FTP service.
use_localtime=YES
this is a link for all the commands, what they do and what is the default for them. http://vsftpd.beasts.org/vsftpd_conf.html
 
Old 08-07-2006, 07:20 PM   #7
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
-thanks for the info.
-is there a way for me to specify where my vsftpd will be installed.
 
Old 08-08-2006, 01:37 AM   #8
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Why would you need to do that?
If you install it from rpm, I doubt you can choose where it is installed. It'll get installed in the default location then.
If you compile it from source, on the other hand, you can put the compiled program anywhere you like, I suppose.
 
Old 08-08-2006, 03:26 AM   #9
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
- well just to be organized so that its easy for me to know where to look.

- anyway im using ubuntu desktop so if i will install vsftpd what are the folders where it will installed. will it be installed in 1 folder or will it be scattered on different folders.
 
Old 08-08-2006, 04:20 AM   #10
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
1. If you're indeed using Ubuntu, try updating your LQ forum user's profile. This will make the distro show up on the left, below your forum username, which is easier for other forum members.
2. I have no experience with Ubuntu or Debian. But doesn't your package manager provide you with an overview of the contents of the installed packages?
Most likely, it'll spread over multiple directories (ie library files, programs and man pages/documentation are stored separately), but if your package manager (apt-get) handles the installation, all files will most likely be put in the right places.
 
Old 08-08-2006, 04:52 AM   #11
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 846

Rep: Reputation: 45
Having been through this not so long ago I'd suggest that you let apt-get install in the default locations. It's difficult enough to set up without having to "translate" the paths mentioned in the documentation into your paths.

I use proftpd and the learning curve is very steep until you grasp how the whole thing works.

As mentioned earlier securing your system is a non-trivial exercise.

If documentation is your problem then proftpd might have better documentation in the sense that there is a lot of it. On the other handwrapping your brain around it may take time.
 
Old 08-08-2006, 08:51 AM   #12
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Rep: Reputation: 15
yes there is a way to put the file in one place what u dont wont to do that.

i have a news flash for u... welcome to linux Dude.
every file have a meaning and it should be in the directory that point that meaning.
/etc/ should have all the configurations files.
/lib/ the library files
/usr/bin the binaries files (or the programs (commands)) files
/usr/sbin the system binary files (the program/commands for administration)
/usr/share/DOC all the documents file.
and so on and so on.
the package u installing with apt-get put the files in the right directory. (you can know which go where but i dont romember the command probably apt-cache something, the last ubuntu i used was 5.04 so i dont remember, read the man page).
if you put all the file in one directory that u choose the may not know where the files r and cos of that not work.
by the way to put them in the same directory you need to write
Quote:
--prefix directoryname
but it work only if downloading the sources and compile the program.
all you need to know in the vsftpd server is that the .conf file is on /etc and the files that uploaded or seen by the users when they log in r the're home directory.

Last edited by doronunu; 08-08-2006 at 08:53 AM.
 
Old 08-08-2006, 09:38 AM   #13
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
and the files that uploaded or seen by the users when they log in r the're home directory
But this can behaviour can be altered via the vsftpd configuration.
 
Old 08-08-2006, 09:41 AM   #14
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
Quote:
Originally Posted by doronunu
i have a news flash for u... welcome to linux Dude.







.
 
Old 08-08-2006, 09:46 AM   #15
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
...news flash...
Of course, having been educated by Redmond, the OP probably understands why he should put the daemon where he pleases rather than where it belongs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP server in linux arunka Linux - Networking 3 06-22-2006 12:35 PM
ftp from LInux to Serv-U ftp server problem csross Linux - General 2 11-07-2005 04:35 PM
ftp to linux server jasonnth Linux - Newbie 5 10-10-2005 10:37 AM
best ftp server for linux mack4evr Linux - Software 3 08-08-2004 06:31 PM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration