Presentation is loading. Please wait.

Presentation is loading. Please wait.

PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.

Similar presentations


Presentation on theme: "PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019."— Presentation transcript:

1 PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019

2   FTP Is a popular File Sharing Protocol. Widely popular on All Operating Systems  FTP Service is the basic need for everyone who wants to share their Files over internet. Using FTP, Users can Download Upload their files to the server and thus File Sharing becomes very easy. FTP

3   FTP SERVER is used to transfer files between server and clients. All major operating system supports ftp. FTP is the most used protocol over internet to transfer files. Like most Internet operations, FTP works on a client/ server model. FTP client programs can enable users to transfer files to and from a remote system running an FTP server program. FTP SERVER

4   Setting up the FTP server is done via a number of configuration files  In addition to configuration files, there is the anonymous user home directory:  Anonymous users do not see the entire file system and are limited to a working area FTP SERVER CONFIGURATION

5  1. Install the ftp and vsftpd rpm Packages using Yum command like below. #yum install ftp vsftpd  The above command will install the packages vsftpd-2.2.2- 11.el6_4.1.x86_64.rpm and ftp-0.17-54.el6.x86_64. This completes the Installation of packages required to setup your FTP Server.

6  2. Start the FTP Server.  Start your vsftpd service using following command #service vsftpd start  Enable Boot time Startup using chkconfig command as below #chkconfig vsftpd on

7  3.Now let's configure your FTP Server now.  The installation process will generate the following files under /etc/vsftpd/ vsftpd_conf_migrate.sh user_list ftpusers vsftpd.conf

8   What is the Purpose of user_list file ?  If you have defined "userlist_deny=NO" inside vsftpd.conf, only usernames specified in this file will be allowed to login to your FTP Server.  If you have defined "userlist_deny=YES" inside vsftpd.conf, Usernames specified in this file will NEVER be allowed to login to your FTP Server.  What is the Purpose of ftpusers file?  Usernames specified in this file will NEVER be allowed to login to your FTP Server.  Note that by Default "root" user will be specified in this file. If you want to allow FTP login for root user you have to remove "root" username from these two files i.e. /etc/vsftpd/ftpusers and /etc/vsftpd/user_list

9  4. Edit the main configuration file vsftpd.conf using Text editor to configure FTP server Users.  You need to uncomment this property to Allow FTP users to login. chroot_list_enable=YES  Now save this file & exit

10  5. Add user "kashif" under chroot FTP User list  Create your First FTP User using below command. # useradd -s /sbin/nologin -c 'FTP User' -d /var/ftp/pub/kashif kashif Assign a Password to this User using passwd command #passwd kashif  In the above command I have created a user with name "kashif" and made this home directory as /var/ftp/pub/kashif/ and restricted his account only for FTP login by providing this option -> -s /sbin/nologin  Now add username "kashif" to /etc/vsftpd/chroot_list  #vi /etc/vsftpd/chroot_list and add "kashif" to it.  This will make sure that user "kashif" will be restricted to his home directory only.

11  6. Restart vsftpd Service to Get your FTP Server working. #service vsftpd restart  Now try to Login to your FTP Server as i have done below.  Now You've Successfully Installed and Configured your FTP Server

12  NFS

13   A Network File System (NFS) allows remote hosts to mount file systems over a network and access those file systems as they are mounted locally.  NFS operates over TCP/IP network.  NFS enables you to mount a file system on a remote computer.  Directly access any of the files on that remote file system NFS – Network File System

14   A client contacts portmap to get port number of desired server program.  RPC packets are addressed to the corresponding port  Use the rpcinfo -p command to obtain details on services The NFS Protocol

15

16  Pre-requisists  A Linux server with IP address  192.168.0.254 and hostname  Server  A linux client with IP address  192.168.0.1 and hostname  Client1 Configure NFS Server

17  Pre-requisists  Updated /etc/hosts file on both Linux system  Running portmap and xinetd services  Firewall should be off on server Configure NFS Server

18  Step – 1:  Three rpm are required to configure nfs  server. nfs,  portmap,  xinetd check them if not found then install. Configure NFS Server

19

20  Step – 2:  Now restart  xinetd and  portmap service Configure NFS Server

21

22  Step – 3:  To keep on these services after reboot on then via chkconfig command Configure NFS Server

23

24  Step – 4:  After reboot verify their status. It must be in running condition. Configure NFS Server

25

26   Step-5 : now create a /data directory and grant full permission to it. Configure NFS Server

27

28  Step – 6:  now open /etc/exports file Configure NFS Server

29  Step – 7:  share data folder for the network of 192.168.0.254/24 with read and write access Configure NFS Server Step – 8: save file with :wq and exit

30  Step – 9:  now restart the nfs service and also on it with chkconfig. Configure NFS Server

31


Download ppt "PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019."

Similar presentations


Ads by Google