SlideShare a Scribd company logo
1 of 55
Group Members:
Rida Shaukat
Samia Tariq
Ayesha Talat
2
Topics:
FTP Server
NFS Server
SAMBA Server
3
File Transfer
Protocol
4
FTP History:
 Short form File Transfer Protocol
 FTP was first proposed
on April 16, 1971
 Developed by Abhay Bhushan
 Implementation on hosts at MIT
 FTP was later defined by RFC 959
that was published in 1985.
5
What is FTP?
 FTP is the standard network protocol
 FTP is used for the transfer of computer files
between a FTP client and FTP server on a
computer network.
 FTP is built on a client-server model architecture
and uses separate control and data connections
between the client and the server.
6
FTP Client FTP
Server
 Software that connects
your computer to a
server
 Provides a reliable
means to transfer data
between two
computers
 Also known as FTP
site
 Stores all the files and
databases for clients
 FTP client connects to
the server in order to
access the files
7
FTP Modes:
There are following FTP modes :
ACTIVE MODE FTP
PASSIVE MODE FTP
8
FTP Modes (Cont):
ACTIVE MODE FTP:
 Active mode was originally the only method of
FTP, and is therefore often the default mode
for FTP
 When a client and server intend to transfer
data, they usually start a Control Connection
first in order to negotiate the details of the
Data Connection prior to opening it and
transferring data.
9
10
FTP Modes (Cont):
Passive MODE FTP:
Passive FTP is a more secure form of
data transfer
In which the flow of data is set up and
initiated by the File Transfer Program
(FTP) client rather than by the FTP
server program.
11
12
FTP Server Config. In
LINUX:
Now we are going to learn how to
setup a FTP server in simple steps.
So let's start now:
13
FTP Server Config. (Cont):
14
FTP Server Config. (Cont):
15
FTP Server Config. (Cont):
16
FTP Server Config. (Cont):
17
Network file
system
18
What is NFS?
NFS stand for Network File System.
Network File System (NFS) is
a distributed file system
Allowing a user on a client computer to
access files over a computer
network much like local storage is
accessed.
19
Where did it come from?
 NFS was developed by Sun
Microsystems in 1980.
 NFS is used to share files between
Linux / Unix systems.
 Red Hat Enterprise Linux 6 supports NFSv2,
NFSv3,
and NFSv4 clients.
 By default RHEL6 use NFSv4 if the server
supports it.
 TCP 2049 is the default port number for NFS.
20
Benefits:
 NFS allows local access to remote files.
 It uses standard client/server architecture
for file sharing between all *nix based machines.
 With NFS it is not necessary that both machines run
on the same OS.
 With the help of NFS we can configure centralized
storage solutions.
 Can be secured with Firewalls
21
NFS Versions:
NFSv1
NFSv2
NFSv3
NFSv4
22
NFS Services:
23
Files for NFS Configurations:
 /etc/exports
It’s a main configuration file of NFS, all exported
files and directories are defined in this file.
 /etc/fstab
To mount a NFS directory on your system across
the reboots, we need to make an entry in/etc/fstab.
 /etc/sysconfig/nfs
Configuration file of NFS to control on which port rpc
and other services are listening.
24
NFS Server Configuration Lab:
25
NFS Server Configuration
steps:
 Step 1
Configure the NIC (Network Interface Card). Execute the
following command to configure NIC. (#setup)
 Step 2
Restart the Network Service by executing the following
command. (#service network restart)
 Step 3
Then check your NIC Configuration with the help of
following command. (# Ifconfig)
26
NFS Server Configuration steps (Cont):
 Step 4:-
-In the next step we need to install NFS packages on
our NFS Server as well as on NFS Client machine. We
can install it via “yum” (Red Hat Linux) and “apt-get”
(Debian and Ubuntu) package installers.
-To install NFS packages using “yum” in RHEL 6 execute
following command it:
# yum install nfs-utils nfs-utils-lib
#yum install rpcbind (not required with NFSv4)
- To install NFS packages using “apt-get” in Debian or
Ubuntu execute following command it:
#apt-get install nfs-utils nfs-utils-lib
27
NFS Server Configuration steps (Cont):
 Step 5
-In this step you have to verify that NFS Server
packages are installed.
-To verify the “nfs-utils” package execute the following
command:- (#rpm –qa nfs-utils* )
-To verify the “rpc-bind” package execute the following
command:- (#rpm –qa rpcbind* )
 Step 6
In the next step, create a new directory to share
with client and named it whatever you want, you can also
share an already existing directory with NFS. To create a
new directory executes the following command:- ( #mkdir
/nfsshare )
28
NFS Server Configuration steps (Cont):
 Step 7
-Now we need to make an entry in “/etc/exports” and
restart the services to make our directory shareable in the
network.
/nfsshare 172.18.209.10(rw, sync)
-In the above example, there is a directory in / partition
named “nfsshare” is being shared with client
IP “172.18.209.10” with read and write (rw) privilege, you
can also use hostname of the client in the place of IP in
above example.
29
NFS Server Configuration steps (Cont):
-Some other options we can use in
“/etc/exports” file for file sharing is as follows.
ro:With the help of this option we can provide read only
access to the shared files i.e client will only be able to
read.
rw: This option allows the client server to both read and
write access within the shared directory.
sync: Sync confirms requests to the shared directory only
once the changes have been committed.
 no_root_squash: This phrase allows root to connect
to the designated directory.
30
NFS Server Configuration steps (Cont):
 Step 8:-
Now start the rpcbind and nfs service by
using the following command.
#service rpcbind start (not required with
NFSv4) (#service nfs start )
 Step 9:- To turn on the above services at boot
time, execute the following
command. #chkconfig rpcbind on (not
required with NFSv4
#chkconfig nfs on
 Step 10:- Now execute the following command to
show the available shares your NFS server.
#showmount -e
31
NFS Client Configuration
steps:
 Step 1
Configure the NIC (Network Interface
Card). Execute the following command to
configure NIC. (#setup)
Where eth0 is your NIC number.
 Step 2
If you’re NIC not configured, then first configure your
NIC.
To configure NIC, execute the following command:-
#setup
Then restart the network service:-
#service network restart And then check the
connectivity with NFS Server:-
#ping 172.18.209.9
32
NFS Client Configuration steps (Cont):
 Step 3:- In the next step we need to install NFS
packages on our NFS Server as well as on NFS
Client machine.
 We can install it via “yum” (Red Hat Linux) and “apt-
get” (Debian and Ubuntu) package installers.
 To install NFS packages using “yum” in RHEL
6 execute following command it: -
# yum install nfs-utils nfs-utils-lib
#yum install rpcbind (not required with
NFSv4)
To install NFS packages using “apt-get” in
Debian or Ubuntu execute following command it: -
#apt-get install nfs-utils nfs-utils-lib
33
NFS Client Configuration steps (Cont):
 Step 4
-In this step you have to verify that NFS Server
packages are installed. To verify the “nfs-utils” package
execute the following command:- ( #rpm –qa nfs-utils* )
-To verify the “rpc-bind” package execute the following
command:- ( #rpm –qa rpcbind*
 Step 5:-
-at the NFS client end, we need to mount that directory in our
server to access it locally. To do so, first we need to find out
that share available on the remote server or NFS Server.
-Execute the following command to find out the available
share on the NFS Server. ( #showmount –e
172.18.209.9 )
Note: - where 172.18.209.9 is the NFS Server IP address.
34
NFS Client Configuration steps (Cont):
 Step 6:-
-Use the following command to mount that NFS share on our
client machine.
#mount –t nfs 172.18.209:/nfsshare /mnt
-The above command will mount that shared directory
in “/mnt/” on the client server. You can verify it
following command.
#mount | grep nfs
35
NFS Client Configuration steps (Cont):
 Step 7:-
In the previous step we mounted the nfs shared directory on
to nfs client temporarily, to mount an NFS directory
permanently on your system across the reboots, we need to
make an entry in
“/etc/fstab“.
Now edit the “/etc/fstab” file and add the following line to this
file.
#vim /etc/fstab
172.18.209.9:/nfsshare /mnt nfs defaults 0 0
36
Samba
server
37
What is Samba?
 Samba is a popular freeware program that allows
end users to access and use files, printers, and
other commonly shared resources on a
company's intranet or on the Internet.
 Samba is often referred to as a network file
system and can be installed on a variety of
operating system platforms.
 Samba uses the SMB protocol to share files and
printers across a network connection.
38
Why we use Samba?
 Samba is useful if you have a network of both
Windows and Linux machines
 Samba is a strong network service for file and
print sharing
 Samba is reliable software that runs on reliable
Unix operating system
 Samba has a very nice cost advantage: it's free.
 Share one or more Distributed filesystem (Dfs)
39
Where did it come from?
 It’s developed by Australian
Andrew Tridgell.
 Released under GNU
General Public Licence.
 The name Samba come from
SMB (Server Message Block)
40
What is SMB?
 SMB stands for – Server Message Block.
 It is a protocol by which a lot of PC
related machines share files and printers
and other information such as lists of
available files and printers.
 Operating systems that support this
natively include Windows NT, OS/2, and
Linux.
41
SMB Components:
Smbd daemon: This provides the file and print
services to SMB clients
smb.conf: This is the configuration file for smbd.
nmbd daemon: This daemon provides NetBIOS
name serving and browsing support.
smbpasswd: This allows the user to change the
password used for their SMB sessions.
42
SMB Components(Cont):
• smbclient: This is an smb client program implement a
simple FTP-like client on a Linux or Unix box.
• smbstatus: This programs lists the current
Samba connections.
smbmount: This mounting program enables
mounting of server directories on a box.
SWAT: Swat allows a Samba administrator to
configure the smb.conf file via a Web browser.
43
Configuring a Samba Server(Cont):
Configuring Samba
The default configuration file
(/etc/samba/smb.conf) allows users to view their
home directories as a Samba share. It also
shares all printers configured for the system as
Samba shared printers
Command-
Line
Configuration
Graphical
Configuration
44
Configuring a Samba Server(Cont):
Graphical Configuration
 To configure Samba using a graphical
interface, use the Samba Server
Configuration Tool.
 The Samba Server Configuration Tool is a
graphical interface for managing Samba
shares, users, and basic server settings.
 It modifies the configuration files in
the /etc/samba/directory.
45
Configuring a Samba Server(Cont):
Graphical Configuration
Samba Server Configuration Tool from the desktop, go to
the Main Menu Button (on the Panel) => System
Settings => Server Settings => Samba or type the
command redhat-config-samba
46
Configuring a Samba Server(Cont):
Graphical Configuration
Samba Server Configuration Tool from the desktop, go to
the Main Menu Button (on the Panel) => System
Settings => Server Settings => Samba or type the
command redhat-config-samba
47
Configuring a Samba Server(Cont):
Create Samba user.
The step by step procedure below show how to add user to
Samba Server using the graphical Samba Server
Configuration tool,
 To create samba user go to Preferences tab, then click
on Samba Users to open the Samba Users window
 On the Samba Users window, click Add User button to
open the Create New Samba User window.
48
Configuring a Samba Server(Cont):
Command Line Configuration
1.
• Installing Samba
2.
• Create test directory and files
3.
• Add Samba user and group
4.
• Samba Configuration file
49
Configuring a Samba Server:
Installing Samba
Use yum to install the Samba package
50
Configuring a Samba Server:
Creating Samba Test Directory and Files
51
Configuring a Samba Server:
Adding the Samba User
Creating the Samba Group
52
Configuring a Samba Server:
Configuring Samba
Samba uses /etc/samba/smb.conf as its configuration
file.
53
54
55

More Related Content

What's hot

System Administration: Introduction to system administration
System Administration: Introduction to system administrationSystem Administration: Introduction to system administration
System Administration: Introduction to system administrationKhang-Ling Loh
 
What is a Server
What is a ServerWhat is a Server
What is a ServerKuwait10
 
Network and System Administration
Network and System AdministrationNetwork and System Administration
Network and System AdministrationIgguuMuude
 
User administration concepts and mechanisms
User administration concepts and mechanismsUser administration concepts and mechanisms
User administration concepts and mechanismsDuressa Teshome
 
Chapter07 Advanced File System Management
Chapter07      Advanced  File  System  ManagementChapter07      Advanced  File  System  Management
Chapter07 Advanced File System ManagementRaja Waseem Akhtar
 
1 introduction to windows server 2016
1  introduction to windows server 20161  introduction to windows server 2016
1 introduction to windows server 2016Hameda Hurmat
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networkingicanhasfay
 
Firewall presentation
Firewall presentationFirewall presentation
Firewall presentationAmandeep Kaur
 
Server operating system
Server operating systemServer operating system
Server operating systemTapan Khilar
 
Network Troubleshooting
Network TroubleshootingNetwork Troubleshooting
Network TroubleshootingJoy Sarker
 
System Administration DCU
System Administration DCUSystem Administration DCU
System Administration DCUKhalid Rehan
 
Network administration and Management
Network administration and ManagementNetwork administration and Management
Network administration and ManagementBry Cunal
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in LinuxHenry Osborne
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linuxVarnnit Jain
 

What's hot (20)

System Administration: Introduction to system administration
System Administration: Introduction to system administrationSystem Administration: Introduction to system administration
System Administration: Introduction to system administration
 
What is a Server
What is a ServerWhat is a Server
What is a Server
 
Introduction to Server
Introduction to ServerIntroduction to Server
Introduction to Server
 
Network and System Administration
Network and System AdministrationNetwork and System Administration
Network and System Administration
 
User administration concepts and mechanisms
User administration concepts and mechanismsUser administration concepts and mechanisms
User administration concepts and mechanisms
 
Users and groups
Users and groupsUsers and groups
Users and groups
 
DNS (Domain Name System)
DNS (Domain Name System)DNS (Domain Name System)
DNS (Domain Name System)
 
Chapter07 Advanced File System Management
Chapter07      Advanced  File  System  ManagementChapter07      Advanced  File  System  Management
Chapter07 Advanced File System Management
 
Windows server
Windows serverWindows server
Windows server
 
1 introduction to windows server 2016
1  introduction to windows server 20161  introduction to windows server 2016
1 introduction to windows server 2016
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networking
 
Firewall presentation
Firewall presentationFirewall presentation
Firewall presentation
 
Network operating system
Network operating systemNetwork operating system
Network operating system
 
Server operating system
Server operating systemServer operating system
Server operating system
 
Iptables the Linux Firewall
Iptables the Linux Firewall Iptables the Linux Firewall
Iptables the Linux Firewall
 
Network Troubleshooting
Network TroubleshootingNetwork Troubleshooting
Network Troubleshooting
 
System Administration DCU
System Administration DCUSystem Administration DCU
System Administration DCU
 
Network administration and Management
Network administration and ManagementNetwork administration and Management
Network administration and Management
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linux
 

Similar to Server configuration

Chapter 05
Chapter 05Chapter 05
Chapter 05cclay3
 
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)Raghu nath
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)Raghu nath
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file systemSyaiful Ahdan
 
NFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systemsNFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systemsAshish Mamgain
 
file transfer and access utilities
file transfer and access utilitiesfile transfer and access utilities
file transfer and access utilitiestumetr1
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEMRoshan Kumar
 
Solaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSSolaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSAhmedEidNassef
 
Network File System
Network File SystemNetwork File System
Network File SystemDivyang Oza
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba serverVeeral Bhateja
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)Sumant Garg
 

Similar to Server configuration (20)

Linux06 nfs
Linux06 nfsLinux06 nfs
Linux06 nfs
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
 
File Sever
File SeverFile Sever
File Sever
 
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file system
 
Nfs
NfsNfs
Nfs
 
NFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systemsNFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systems
 
file transfer and access utilities
file transfer and access utilitiesfile transfer and access utilities
file transfer and access utilities
 
Ch18 system administration
Ch18 system administration Ch18 system administration
Ch18 system administration
 
Nfs
NfsNfs
Nfs
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
 
linux
linuxlinux
linux
 
Solaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSSolaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFS
 
Network File System
Network File SystemNetwork File System
Network File System
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
 
Samba
SambaSamba
Samba
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
 
Rhel3
Rhel3Rhel3
Rhel3
 

Recently uploaded

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 

Recently uploaded (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

Server configuration

  • 1.
  • 2. Group Members: Rida Shaukat Samia Tariq Ayesha Talat 2
  • 5. FTP History:  Short form File Transfer Protocol  FTP was first proposed on April 16, 1971  Developed by Abhay Bhushan  Implementation on hosts at MIT  FTP was later defined by RFC 959 that was published in 1985. 5
  • 6. What is FTP?  FTP is the standard network protocol  FTP is used for the transfer of computer files between a FTP client and FTP server on a computer network.  FTP is built on a client-server model architecture and uses separate control and data connections between the client and the server. 6
  • 7. FTP Client FTP Server  Software that connects your computer to a server  Provides a reliable means to transfer data between two computers  Also known as FTP site  Stores all the files and databases for clients  FTP client connects to the server in order to access the files 7
  • 8. FTP Modes: There are following FTP modes : ACTIVE MODE FTP PASSIVE MODE FTP 8
  • 9. FTP Modes (Cont): ACTIVE MODE FTP:  Active mode was originally the only method of FTP, and is therefore often the default mode for FTP  When a client and server intend to transfer data, they usually start a Control Connection first in order to negotiate the details of the Data Connection prior to opening it and transferring data. 9
  • 10. 10
  • 11. FTP Modes (Cont): Passive MODE FTP: Passive FTP is a more secure form of data transfer In which the flow of data is set up and initiated by the File Transfer Program (FTP) client rather than by the FTP server program. 11
  • 12. 12
  • 13. FTP Server Config. In LINUX: Now we are going to learn how to setup a FTP server in simple steps. So let's start now: 13
  • 14. FTP Server Config. (Cont): 14
  • 15. FTP Server Config. (Cont): 15
  • 16. FTP Server Config. (Cont): 16
  • 17. FTP Server Config. (Cont): 17
  • 19. What is NFS? NFS stand for Network File System. Network File System (NFS) is a distributed file system Allowing a user on a client computer to access files over a computer network much like local storage is accessed. 19
  • 20. Where did it come from?  NFS was developed by Sun Microsystems in 1980.  NFS is used to share files between Linux / Unix systems.  Red Hat Enterprise Linux 6 supports NFSv2, NFSv3, and NFSv4 clients.  By default RHEL6 use NFSv4 if the server supports it.  TCP 2049 is the default port number for NFS. 20
  • 21. Benefits:  NFS allows local access to remote files.  It uses standard client/server architecture for file sharing between all *nix based machines.  With NFS it is not necessary that both machines run on the same OS.  With the help of NFS we can configure centralized storage solutions.  Can be secured with Firewalls 21
  • 24. Files for NFS Configurations:  /etc/exports It’s a main configuration file of NFS, all exported files and directories are defined in this file.  /etc/fstab To mount a NFS directory on your system across the reboots, we need to make an entry in/etc/fstab.  /etc/sysconfig/nfs Configuration file of NFS to control on which port rpc and other services are listening. 24
  • 26. NFS Server Configuration steps:  Step 1 Configure the NIC (Network Interface Card). Execute the following command to configure NIC. (#setup)  Step 2 Restart the Network Service by executing the following command. (#service network restart)  Step 3 Then check your NIC Configuration with the help of following command. (# Ifconfig) 26
  • 27. NFS Server Configuration steps (Cont):  Step 4:- -In the next step we need to install NFS packages on our NFS Server as well as on NFS Client machine. We can install it via “yum” (Red Hat Linux) and “apt-get” (Debian and Ubuntu) package installers. -To install NFS packages using “yum” in RHEL 6 execute following command it: # yum install nfs-utils nfs-utils-lib #yum install rpcbind (not required with NFSv4) - To install NFS packages using “apt-get” in Debian or Ubuntu execute following command it: #apt-get install nfs-utils nfs-utils-lib 27
  • 28. NFS Server Configuration steps (Cont):  Step 5 -In this step you have to verify that NFS Server packages are installed. -To verify the “nfs-utils” package execute the following command:- (#rpm –qa nfs-utils* ) -To verify the “rpc-bind” package execute the following command:- (#rpm –qa rpcbind* )  Step 6 In the next step, create a new directory to share with client and named it whatever you want, you can also share an already existing directory with NFS. To create a new directory executes the following command:- ( #mkdir /nfsshare ) 28
  • 29. NFS Server Configuration steps (Cont):  Step 7 -Now we need to make an entry in “/etc/exports” and restart the services to make our directory shareable in the network. /nfsshare 172.18.209.10(rw, sync) -In the above example, there is a directory in / partition named “nfsshare” is being shared with client IP “172.18.209.10” with read and write (rw) privilege, you can also use hostname of the client in the place of IP in above example. 29
  • 30. NFS Server Configuration steps (Cont): -Some other options we can use in “/etc/exports” file for file sharing is as follows. ro:With the help of this option we can provide read only access to the shared files i.e client will only be able to read. rw: This option allows the client server to both read and write access within the shared directory. sync: Sync confirms requests to the shared directory only once the changes have been committed.  no_root_squash: This phrase allows root to connect to the designated directory. 30
  • 31. NFS Server Configuration steps (Cont):  Step 8:- Now start the rpcbind and nfs service by using the following command. #service rpcbind start (not required with NFSv4) (#service nfs start )  Step 9:- To turn on the above services at boot time, execute the following command. #chkconfig rpcbind on (not required with NFSv4 #chkconfig nfs on  Step 10:- Now execute the following command to show the available shares your NFS server. #showmount -e 31
  • 32. NFS Client Configuration steps:  Step 1 Configure the NIC (Network Interface Card). Execute the following command to configure NIC. (#setup) Where eth0 is your NIC number.  Step 2 If you’re NIC not configured, then first configure your NIC. To configure NIC, execute the following command:- #setup Then restart the network service:- #service network restart And then check the connectivity with NFS Server:- #ping 172.18.209.9 32
  • 33. NFS Client Configuration steps (Cont):  Step 3:- In the next step we need to install NFS packages on our NFS Server as well as on NFS Client machine.  We can install it via “yum” (Red Hat Linux) and “apt- get” (Debian and Ubuntu) package installers.  To install NFS packages using “yum” in RHEL 6 execute following command it: - # yum install nfs-utils nfs-utils-lib #yum install rpcbind (not required with NFSv4) To install NFS packages using “apt-get” in Debian or Ubuntu execute following command it: - #apt-get install nfs-utils nfs-utils-lib 33
  • 34. NFS Client Configuration steps (Cont):  Step 4 -In this step you have to verify that NFS Server packages are installed. To verify the “nfs-utils” package execute the following command:- ( #rpm –qa nfs-utils* ) -To verify the “rpc-bind” package execute the following command:- ( #rpm –qa rpcbind*  Step 5:- -at the NFS client end, we need to mount that directory in our server to access it locally. To do so, first we need to find out that share available on the remote server or NFS Server. -Execute the following command to find out the available share on the NFS Server. ( #showmount –e 172.18.209.9 ) Note: - where 172.18.209.9 is the NFS Server IP address. 34
  • 35. NFS Client Configuration steps (Cont):  Step 6:- -Use the following command to mount that NFS share on our client machine. #mount –t nfs 172.18.209:/nfsshare /mnt -The above command will mount that shared directory in “/mnt/” on the client server. You can verify it following command. #mount | grep nfs 35
  • 36. NFS Client Configuration steps (Cont):  Step 7:- In the previous step we mounted the nfs shared directory on to nfs client temporarily, to mount an NFS directory permanently on your system across the reboots, we need to make an entry in “/etc/fstab“. Now edit the “/etc/fstab” file and add the following line to this file. #vim /etc/fstab 172.18.209.9:/nfsshare /mnt nfs defaults 0 0 36
  • 38. What is Samba?  Samba is a popular freeware program that allows end users to access and use files, printers, and other commonly shared resources on a company's intranet or on the Internet.  Samba is often referred to as a network file system and can be installed on a variety of operating system platforms.  Samba uses the SMB protocol to share files and printers across a network connection. 38
  • 39. Why we use Samba?  Samba is useful if you have a network of both Windows and Linux machines  Samba is a strong network service for file and print sharing  Samba is reliable software that runs on reliable Unix operating system  Samba has a very nice cost advantage: it's free.  Share one or more Distributed filesystem (Dfs) 39
  • 40. Where did it come from?  It’s developed by Australian Andrew Tridgell.  Released under GNU General Public Licence.  The name Samba come from SMB (Server Message Block) 40
  • 41. What is SMB?  SMB stands for – Server Message Block.  It is a protocol by which a lot of PC related machines share files and printers and other information such as lists of available files and printers.  Operating systems that support this natively include Windows NT, OS/2, and Linux. 41
  • 42. SMB Components: Smbd daemon: This provides the file and print services to SMB clients smb.conf: This is the configuration file for smbd. nmbd daemon: This daemon provides NetBIOS name serving and browsing support. smbpasswd: This allows the user to change the password used for their SMB sessions. 42
  • 43. SMB Components(Cont): • smbclient: This is an smb client program implement a simple FTP-like client on a Linux or Unix box. • smbstatus: This programs lists the current Samba connections. smbmount: This mounting program enables mounting of server directories on a box. SWAT: Swat allows a Samba administrator to configure the smb.conf file via a Web browser. 43
  • 44. Configuring a Samba Server(Cont): Configuring Samba The default configuration file (/etc/samba/smb.conf) allows users to view their home directories as a Samba share. It also shares all printers configured for the system as Samba shared printers Command- Line Configuration Graphical Configuration 44
  • 45. Configuring a Samba Server(Cont): Graphical Configuration  To configure Samba using a graphical interface, use the Samba Server Configuration Tool.  The Samba Server Configuration Tool is a graphical interface for managing Samba shares, users, and basic server settings.  It modifies the configuration files in the /etc/samba/directory. 45
  • 46. Configuring a Samba Server(Cont): Graphical Configuration Samba Server Configuration Tool from the desktop, go to the Main Menu Button (on the Panel) => System Settings => Server Settings => Samba or type the command redhat-config-samba 46
  • 47. Configuring a Samba Server(Cont): Graphical Configuration Samba Server Configuration Tool from the desktop, go to the Main Menu Button (on the Panel) => System Settings => Server Settings => Samba or type the command redhat-config-samba 47
  • 48. Configuring a Samba Server(Cont): Create Samba user. The step by step procedure below show how to add user to Samba Server using the graphical Samba Server Configuration tool,  To create samba user go to Preferences tab, then click on Samba Users to open the Samba Users window  On the Samba Users window, click Add User button to open the Create New Samba User window. 48
  • 49. Configuring a Samba Server(Cont): Command Line Configuration 1. • Installing Samba 2. • Create test directory and files 3. • Add Samba user and group 4. • Samba Configuration file 49
  • 50. Configuring a Samba Server: Installing Samba Use yum to install the Samba package 50
  • 51. Configuring a Samba Server: Creating Samba Test Directory and Files 51
  • 52. Configuring a Samba Server: Adding the Samba User Creating the Samba Group 52
  • 53. Configuring a Samba Server: Configuring Samba Samba uses /etc/samba/smb.conf as its configuration file. 53
  • 54. 54
  • 55. 55