Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
110 views26 pages

Linux and Samba Setup Guide

Linux is a free Unix-type operating system created by Linus Torvalds in 1991. It originated as a personal project and is now developed collaboratively over the Internet under the GNU license. Red Hat Enterprise Linux 6 improves application performance and scalability while reducing complexity through physical, virtual, and cloud computing capabilities. Samba allows Linux systems like Red Hat Enterprise Linux 6 to share files and printers with Microsoft Windows clients by implementing the SMB/CIFS protocol.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views26 pages

Linux and Samba Setup Guide

Linux is a free Unix-type operating system created by Linus Torvalds in 1991. It originated as a personal project and is now developed collaboratively over the Internet under the GNU license. Red Hat Enterprise Linux 6 improves application performance and scalability while reducing complexity through physical, virtual, and cloud computing capabilities. Samba allows Linux systems like Red Hat Enterprise Linux 6 to share files and printers with Microsoft Windows clients by implementing the SMB/CIFS protocol.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 26

Under Supervision of: Mr.

Ram Sharan Mishra

Presented by: Anand Pandey Roll No.: 0934313002 Prashant Kumar Roll No.: 0934313013

Linux is a free Unix-type operating system originally created by

Linus Torvalds when he was a student at the University of Helsinki.


It originated in 1991 as a personal project of Linus Torvalds.

Developed under the GNU General Public License, the source code
for Linux is freely available to everyone. One of Linuxs most interesting features is that it is not a

commercial product; instead, it is a collaborative project developed


over the Internet.

To understand Linux, we must first discuss the first Unix system. Unix is a multi-user, multi-tasking operating system. Many users can be logged into a system simultaneously, each running many programs. First Version was created in Bell Labs in 1969. Some of the Bell Labs programmers who had worked on this project, Ken

Thompson, Dennis Ritchie, Rudd Canaday, and Doug McIlroy


designed and implemented the first version of the Unix File System on a PDP-7 along with a few utilities.

In 1973 Unix is re-written mostly in C, a new language developed by Dennis Ritchie. 00:00:00 Hours, Jan 1, 1970 is time zero for UNIX. It is also called

as epoch.
The Unix file system looks like an inverted tree structure. You start with the root directory, denoted by /, at the top and work down through sub-directories underneath it.

A simple description of the UNIX system, also applicable to Linux, is this:

"On a UNIX system, everything is a file;


if something is not a file, it is a process.

In 1991 Linux was originated.

Red

Hat Enterprise Linux 6 is the latest release of Red Hat's

trusted datacenter platform, delivers advances in application performance, scalability, and security. With Red Hat Enterprise Linux 6, you can deploy physical, virtual, and cloud computing within your datacenter, reducing complexity, increasing efficiency, and minimizing administration overhead while leveraging existing technical skills and operational know-how.

Samba is the Linux implementation of the networking protocols used to connect Microsoft operating systems. Microsoft networking is based on the Common Internet File

System (CIFS), which was developed from the Server Message


Block (SMB) protocol. CIFS (Common Internet File System) is the standard file and print sharing system for Microsoft Windows clients in Windows server environments.

Samba is an open-source suite of programs that can be installed on a Red Hat Enterprise Linux 6 server to provide seamless file and print services to Microsoft Windows clients. Samba is a strong network service for file and print sharing that works on the majority of operating systems available today. Samba Packages are:

samba.x86_64
samba-common.x86_64 samba-winbind-clients.x86_64

samba-client.x86_64
samba-winbind.x86_64

Step 1 : First we check there is samba server package is installed or


not. If not, then we install samba* package with help of yum server. # rpm qa | grep samba* # yum install samba* -y

Here samba is installing

Here samba* installation is completed.

Step 2 : Enable the service to start during boot


# chkconfig smb on

Step 3 : Start and verify Samba services are running for


use in subsequent steps: # service smb start Starting SMB services: # service smb status smbd (pid 2733) is running... # service smb restart # service smb stop
[ OK ]

Two services responsible for running Samba are: smbd Samba server daemon nmbd NetBIOS service daemon Samba configuration file: /etc/samba/smb.conf

Step 1 : Make a safety copy of original configuration file:


# cp -p /etc/samba/smb.conf /etc/samba/smb.conf.orig # ls -la /etc/samba/smb.* -rw-r--r--. 1 root root 9778 Feb 18 12:43 smb.conf -rw-r--r--. 1 root root 9778 Feb 18 12:43 smb.conf.orig

Step 2 : In the next step we open the samba server configuration


file.
# vim /etc/samba/conf/smb.conf Configuration file open:

Step 4 : We have to create a valid user who has been shared the
directories.
# useradd azon # smbpasswd a azon

User azon has been added.

workgroup = MYGROUP //(Line 74) This should match windows workgroup hosts allow = 127. 192.168.1. //(Line 80)This will allow only the networks 127. and 192.168.1. to access the services and remove semicolon (;) Add these lines at the last of the configuration file:

# ls lz /dir1 # getsebool a | grep samba # setsebool P use_samba_home_dirs on # setsebool P samba_create_home_dirs on # getsebool a | grep samba

Context changed of directory successfully.

LINUX CLIENT Now that all our Samba shares are set up, we can access them from one of the client systems (Client02). Be aware that we need to install the client Samba packages before we can connect to any Samba shares. Step 1: Install the client packages: # yum install -y samba-client samba-common Step 2: Verify that the install was successful: # rpm -qa | grep samba samba-client-3.5.4-68.el6.x86_64 samba-winbind-clients-3.5.4-68.el6.x86_64 samba-common-3.5.4-68.el6.x86_64

# mkdir /opt/company_data
Step 4: Now we try to connect the user. # smbclient //192.168.0.12/azon U SERVER

Connection is successfully done.

Shared directory is there.

You might also like