LinuxQuestions.org

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

JROCK1980 10-29-2003 02:44 AM

FTP Server
 
I want to be able to run an FTP server on my slack box. What program is the best to use and if so a good site to help set it up

yapp 10-29-2003 03:34 AM

pure-ftpd
though it has a lot of command line switches, and ./configure options, but it's worth it. :) If i'm not mistaken, there are some graphical frontends for pure-ftpd.

(note that all settings are supplied at the command line, even the listening port. this was the part that confused me first)


slackware already has proftpd installed, but I never used it, because someone advised me pure-ftpd.. but I'm not sure how secure proftpd is.

mechanicalg0d 10-29-2003 05:47 AM

im gona have to give this pure-ftpd a try. looks good.

JROCK1980 10-30-2003 02:09 AM

thank you will look into it

JROCK1980 11-06-2003 01:45 AM

As I am reading it is stating that you have to run as root. Am I missing reading this? If not isn't that dangerous to do?

yapp 11-06-2003 05:15 AM

I'm a bit confused by this too, but I think I'll have to do some search too.

All servers have to start as root by default, because they need these permissions to create an listing socket below port 1024; ie. the socket that listens on port 21.

A lot of servers however, restrict themselves when they can. For example, the apache server has one deamon to accept incoming corrections. It runs as root. The child processes run under a different user, for example "httpd", but this depends on your httpd.conf settings. The command ps auxf | grep httpd reveals this:
Code:

$ ps auxf | grep httpd
root      1184  0.0  0.9 74940 4960 ?        S    07:01  0:00 /usr/sbin/httpd
httpd    1188  0.0  1.9 81248 9884 ?        S    07:01  0:01  \_ /usr/sbin/httpd
httpd    1189  0.0  1.9 81276 9896 ?        S    07:01  0:02  \_ /usr/sbin/httpd
httpd    1190  0.0  1.9 81568 10156 ?      S    07:01  0:02  \_ /usr/sbin/httpd
httpd    1191  0.0  1.9 81348 9964 ?        S    07:01  0:02  \_ /usr/sbin/httpd
httpd    1192  0.0  2.0 81832 10476 ?      S    07:01  0:01  \_ /usr/sbin/httpd
httpd    1628  0.1  2.0 81928 10560 ?      S    11:49  0:03  \_ /usr/sbin/httpd
httpd    1635  0.1  1.9 81484 10104 ?      S    11:49  0:02  \_ /usr/sbin/httpd

I'm just not sure when pure-ftpd restrict itselves, I hope this happens when you initiate a file tranfer. A quick study showed me that it's children kept running as root. :eek: ..or I've missed something in the configuration.


All times are GMT -5. The time now is 07:28 PM.