Step-7: Connecting ftp Server with Anonymous User
Enable upload & Download access Permission for anonymous user:
Download
/var/ftp/pub is the ftp path for
anonymous user to upload and download. If you want to provide download
facilities for anonymous user, you have to keep default value (YES) for
anonymous_enable (line no 12)
In this situation I m describing how
to keep RHEL5 dvd file in /var/ftp/pub directory that your all clients can
download & install packages via ftp server using yum.
Step-1: Copy the entire file from DVD source & keep it to
/home/rhel5 directory
Step-2: Create a repository file for the DVD source in to the same
directory
Step-3: Now create an ISO file for this DVD source named RHEL_5.4.iso
in to /opt directory
Step-4: Now mount the ISO file in to /var/ftp/pub directory
Step-5: Now finally tell to your clients use this directory by
configuring yum in every clients machine
Step-6: To download packages via ftp by using yum, you have to tell
ftp full link in yum.conf file
Note: For more information see Yum
configuration (also FTP section)
Upload
Generally, the anonymous user has no
permission to upload file in ftp server. To provide upload in ftp server
follow the steps:
Step-1: First create a directory in
to /var/ftp/pub named “upload” & provide required permission for
this directory
[root@ftp ~]# mkdir /var/pub/upload
[root@ftp ~]# cd /var/pub/
[root@ftp pub]#chown root:ftp
upload
[root@ftp pub]# chmod 777 upload
Step-2: Now restart all the required services
[root@ftp ~]# service iptables stop
[root@ftp ~]# service network restart
[root@ftp ~]# service vsftpd restart
[root@ftp ~]# chkconfig vsftpd on
Step-3: From windows machine Open
Internet explorer and then type ftp://ftp.alphabd.net, then you will see the
pub directory as like below