LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linux Ftp Server (https://www.linuxquestions.org/questions/linux-software-2/linux-ftp-server-471493/)

SBN 08-07-2006 02:17 AM

Linux Ftp Server
 
hello all im using UBUNTU linux and i want to know how do i use it to be an FTP server.

b0uncer 08-07-2006 03:24 AM

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.

doronunu 08-07-2006 04:33 AM

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.

SBN 08-07-2006 04:48 AM

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.

timmeke 08-07-2006 04:50 AM

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.

doronunu 08-07-2006 05:40 AM

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

SBN 08-07-2006 07:20 PM

-thanks for the info.
-is there a way for me to specify where my vsftpd will be installed.

timmeke 08-08-2006 01:37 AM

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.

SBN 08-08-2006 03:26 AM

- 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.

timmeke 08-08-2006 04:20 AM

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.

davcefai 08-08-2006 04:52 AM

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.

doronunu 08-08-2006 08:51 AM

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.

timmeke 08-08-2006 09:38 AM

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.

slackhack 08-08-2006 09:41 AM

Quote:

Originally Posted by doronunu
i have a news flash for u... welcome to linux Dude.

:D






.

rickh 08-08-2006 09:46 AM

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.


All times are GMT -5. The time now is 12:13 AM.