In FILE SERVER we can shared files (such as documents, images,sound files, movies and database ) in network using any environment like LINUX and WINDOW .
By using four servers FTP ,NFS, SAMBA and DHCP in Linux environment with help of these servers we make a project on FILE SERVER.
Hardware and Software Requirement
Working The basic working is Sharing Data or Files in NETWORK using any environment LINUX/WINDOWS by using the following servers. > FTP > SAMBA > NFS >DHCP
File Transfer protocol ( FTP )
It is a network protocol used to transfer data from one computer to another through a network such as the Internet.
FTP is a file transfer protocol for exchanging and manipulating files over a TCP computer network. An FTP client may connect to an FTP server to manipulate files on that server.
Package used for FTP Server in Linux : vsftp*
Daemon name : vsftpd
Samba is based on SMB(Server Message Block ) protocol
Samba is used for sharing is data on Linux to Linux and Windows to Linux
Package used for SAMBA Server in Linux : samba*
Daemon name : smb
Dynamic Host Configuration Protocol (DHCP)
It is a network application protocol used by devices (DHCP clients) to obtain configuration information for operation in an Internet Protocol network. This protocol reduces system administration workload, allowing devices to be added to the network with little or no manual intervention.
The DHCP server manages a pool of IP addresses and information about client configuration parameters such as the default gateway, the domain name, the DNS servers, other servers such as time servers, and so forth.
Package used for DHCP in Linux : dhcp*
Daemon name : dhcpd
Network File System (NFS)
A network file system is any computer file system that supports sharing of files, printers and other resources as persistent storage over a computer network
Package used for DHCP in Linux : nfs*
Daemon name : nfsd
TESTING # First of all we need to install Extended Internet Daemon for support of SAMBA using command. rpm -ivh /dump/Server/xinetd* --aid –force # Then installing samba packages using command. rpm -ivh /dump/Server/smb* --aid –force # Now install FTP packages using command . rmp -ivh /dump/server/vsftpd* --aid –force # And similarly install DHCP packages for assign IP address automatically to all the systems by using command . rmp -ivh /dump/server/dhcpd* --aid --force
Continue…. # now configuring the DHCP for NETWORK cat /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample > /etc/dhcpd.conf #After configure the DHCP then Restart DHCP,NFS,VSFTP,SAMBA service by using commands. service dhcpd restart service vsftpd restart service nfs restart service smb restart # Then Permanently ON the all services by using commands. chkconfig smb on chkconfig dhcpd on chkconfig nfs on chkconfig vsftpd on
Continue…. # Then adding two users named POP and ROCK useradd pop useradd rock # adding files in the directory of USERS for sharing echo "this is a file of users POP " > /home/pop/sales echo "this is a file of users ROCK " > /home/rock/myfile echo "plz assign passwords to both users mannually accroding to your requirement” Also assign the passwd to the users by using command . passwd pop passwd rock echo " Thanx all things are done and working fine."
> Larger number of user can access the file at same time.
> Share the file by using any environment like Linux and windows.
> Reduce number of copies of various programs and also save disk space.
> Changes are made to shared file ,they become available to all users immediately.
> Also set the permission to user according to need.