LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting up an FTP Server with Redhat 9 (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-an-ftp-server-with-redhat-9-a-337304/)

jungleking 06-26-2005 09:54 AM

Setting up an FTP Server with Redhat 9
 
Hi, please excuse my linux ignorance as I am very new to it.

I am, trying to setup a web-server allowing me and a few others to connect to it and upload files. I really have not a clue what I'm doing, can anyone please explain to me what to do, or know a url clearly explaining how to setup an FTP server with Redhat.

Thanks

nazir 06-26-2005 10:20 AM

AFAIR, RH9 has vsftpd
If you don't have it installed download and install rpm vsftpd-1.1.3-8.i386.rpm
I don't know if it has included default config files so i'll give you mine as an example. Read documentation for details

/etc/vsftpd.conf

Code:

nopriv_user=vsftp
ftp_username=ftp
secure_chroot_dir=/usr/share/empty
anonymous_enable=NO
local_enable=YES
ftpd_banner="Hello"
dirmessage_enable=YES
message_file=.dirmessage
hide_file=Maildir
write_enable=YES
local_max_rate=0
userlist_enable=YES
userlist_deny=YES
userlist_file=/etc/vsftpd.user_list
chroot_list_enable=YES
chroot_local_user=YES
chroot_list_file=/etc/vsftpd.chroot_list
text_userdb_names=YES
xferlog_enable=YES
xferlog_std_format=NO
vsftpd_log_file=/var/log/vsftpd.log
idle_session_timeout=300
data_connection_timeout=60
accept_timeout=30
connect_from_port_20=YES
pasv_min_port=62100
pasv_max_port=62150
check_shell=NO

/etc/vsftpd.user_list - it contains users who shouldn't have acces to ftp

Code:

root
/etc/vsftpd.chroot_list - contains users, who won't be closed in chroot

Code:

some_user
Then you should add vsftpd to xined.d, AFAIR it is /etc/xinetd.d directory, you should have a called vsftpd there

Code:

service ftp
{
        socket_type            = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/vsftpd
        nice                    = 10
        disable                = no
}

then restart xined.d and it should work

jungleking 06-27-2005 04:57 PM

Thanks very much for the info, but I seem to be having a few problems.

Quote:

Originally posted by nazir

Then you should add vsftpd to xined.d, AFAIR it is /etc/xinetd.d directory, you should have a called vsftpd there

Code:

service ftp
{
        socket_type            = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/vsftpd
        nice                    = 10
        disable                = no
}

then restart xined.d and it should work [/B]
I don't understand this step, what exactly am I adding to where, and how do I run xined.d, there appear to be no executable files there, and when do I specify users passwords and home directories?

Please forgive my n00bness!


All times are GMT -5. The time now is 06:18 PM.