Top Ad unit 728 × 90

Latest updates

recent

FTP SERVER


##### TO CONFIGURE THE FTP SERVER #####
'Step 1:-Check the IP & Assign the Hostname'.
# ifconfig (to check ip)
# hostname ftp.zoom.com
# vi /etc/hosts (provide host entry with ip)
Come at last & provide the ip and hostname as given below:-
192.168.0.100 ftp.zoom.com
:wq(save & quit the file)
# vi /etc/hostname (to make host permanent)
Remove localhost.localdomain and add ftp.zoom.com
:wq(save & quit the file)
'Step 2:-Install the Package'
# yum install vsftpd* -y
'Step 3:-To Provide Downloading'
# cd /var/ftp/pub (for downloading)
# touch linux{1..5}.xls (add files for downloading)
# ls (to check)
'Step 4:-Restart the Service'
# service vsftpd restart
# systemctl enable vsftpd.service (to enable permanently)
# systemctl list-unit-files | grep vsftpd.service (to check)
'Step 5:-Stop the Firewall Service If Enable'
# service firewalld stop (stop firewall service)
# systemctl disable firewalld.service (to disable permanently)
# service iptables stop (stop iptables service)
# systemctl disable iptables.service
DISABLE SELINUX SERVICE PERMANENTLY
# vim /etc/selinux/config (open selinux conf file)
Go to line number 7 & change the Status as given below
SELINUX=disabled
:wq(save & quit the file)
# init 6 (restart is required to update selinux service)
'Step 6:-Check the Result From Client'
IN THE CLIENT PC
# yum install ftp* -y (install this command)
# ftp <server_ip>
# ftp 192.168.0.100 (for example)
Username: ftp (for public user)
Password: enter
ftp> ls
ftp> cd pub
ftp> ls (to check files)
ftp> mget linux* (to download multiple files)
ftp> bye (logout)
# ls (to check the downloaded files)
# firefox ftp://192.168.0.100 (to access in gui)
'Step 7:-To Provide Uploading - Go to FTP SERVER'
# cd /var/ftp (in ftp server pc)
# mkdir upload (create one dir for uploading)
# chmod 777 upload (give full permission)
# vim /etc/vsftpd/vsftpd.conf (open configuration file)
Go to the line no.29 & remove # sign
:wq(save & quit the file)
# service vsftpd restart
'Step 8:-To Upload - Go to Client PC'
# touch unix{1..5}.xls (create some files to upload)
# ftp 192.168.0.100 (access ftp server)
Username:ftp Password:enter
ftp> ls
ftp> cd upload (for uploading)
ftp> prompt (to avoid confirmation)
ftp> mput unix* (to upload multiple files)
ftp> bye (to logout)
TO CHECK THE UPLOADED FILES - GO TO FTP SERVER & CHECK IN THE
LOCATION /var/ftp/upload
# ls /var/ftp/upload (in ftp server pc)


'#### TO BLOCK PUBLIC USER ACCESS ####'
# vim /etc/vsftpd/vsftpd.conf
Go to line no.12 & Replace YES with NO at last
:wq(save & quit the file)
# service vsftpd restart
TO CHECK THE RESULT: GO TO THE CLIENT PC & TRY TO ACCESS FTP
SERVER AS A PUBLIC USER


'#### TO BLOCK A PARTICULAR NORMAL USER ACCESS ####'
# cd /etc/vsftpd
# vi ftpusers (open this file)
At the Normal User Name at last line to block
tom (for example)
:wq(save & quit the file)
# service vsftpd restart
TO CHECK THE RESULT: GO TO THE CLIENT PC & TRY TO ACCESS FTP
SERVER AS A NORMAL USER (tom)


'#### TO BLOCK THE ALL NORMAL USER ACCESS ####'
# vim /etc/vsftpd/vsftpd.conf
Go to line no.16 & Replace YES with NO at last
:wq(save & quit the file)
# service vsftpd restart
TO CHECK THE RESULT: GO TO THE CLIENT PC & TRY TO ACCESS FTP
SERVER AS ANY NORMAL USER
FTP SERVER Reviewed by Unknown on 6:58 PM Rating: 5
© 2007 - 2016. All Rights Reserved by Babashaheer Blog

Contact Form

Name

Email *

Message *

Powered by Blogger.