How To Install Ftp Server On Redhat Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Install the vsftpd package:
# yum install vsftpd
2. Edit /etc/vsftpd/vsftpd.conf:
# vi /etc/vsftpd/vsftpd.conf
3. Configure the FTP server to start automatically:
# chkconfig vsftpd on
4. Start the vsftpd service:
# service vsftpd start
5. Create a user for FTP access:
# useradd -d /home/username -s /sbin/nologin username
6. Set a password for the FTP user:
# passwd username
7. Set the correct permissions for the FTP user:
# chown username:username /home/username
8. Allow FTP access through the firewall:
# iptables -I INPUT -p tcp –dport 21 -j ACCEPT
9. Test your FTP server:
# ftp localhost
10. Enjoy your FTP server!
1. Download the vsftpd software
2. Unpack the source code: $ tar xzf vsftpd–version.tar.gz
3. Change directories to the vsftpd source directory: $ cd vsftpd–version
4. Configure the build environment: $ ./configure
5. Compile the software: $ make
6. As root, install the software: # make install
7. Create a ftp user: # useradd <username>
8. Set up the FTP home directory: # mkdir /home/<username> # chown <username>:<username> /home/<username> # chmod 755 /home/<username>
9. Edit the vsftpd configuration file: # vi /etc/vsftpd.conf
10. Start the vsftpd daemon: # /etc/rc.d/init.d/vsftpd start