how to configure ftp server on redhat linux?
Answer Posted / sanjay
step 1- open this file
vim /etc/yum.repos.d/local.repo
[sanjay]
name=sanju
baseurl=ftp://192.168.0.0/repo (server IP)
enabled=1
gpgcheck=0
save the file and follow step 2
yum clean all
yum install vsftpd
mkdir /var/ftp/sanjay
chmod 775 /var/ftp/sanjay
chgrp ftp /var/ftp/sanjay
la -ld /var/ftp/sanjay
vim /etc/vsftpd/vsftpd.conf
go to line no 12 using se nu
anonymous_enable = YES
local_enable = YES
anon_umask = 022
anon_upload_enable = YES
save the file
service vsftpd start
chkconfig vsftpd on
chcon -t public_content_rw-t /var/ftp/sanjay
la -lZ /var/ftp/
getsebool -a |grep ftp
setsebool -p allow_ftpd_anon_write on
setsebool -p ftp_home_dir1(local user)
service vsftpd restart
then log in
ftp <server IP>
# anonumous
press two times enter because anonymous is using without
password if its successfully done means ur ftp is working
Is This Answer Correct ? | 25 Yes | 6 No |
Post New Answer View All Answers