Professional Documents
Culture Documents
What is Samba ?
It is mainly used for file sharing between two different Operating System.
For eg,
Linux – Windows
Windows – Linux
Advantage:
--------------------------------------------------------------------------------------------
-------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
How to activate IP Address?
-----------------------------------------------------------------------------------------------
Step 2 :Create Repository
-----------------------------------------------------------------------------------------------
Step 1:
Right click ->Virtual Machine Name -> Settings ->CD/DVD(SATA)-> Use ISO
File image ->Browse OS File Location ->Open -> OK
Step 2 :
[root@localhost Desktop]# cd /
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
[1]
name=test
baseurl=file:///mnt
enabled=1
gpgcheck=0
Esc :wq
------------------------------------------------------------------------------------------------
: manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Cleaning repos: 1
Cleaning up everything
------------------------------------------------------------------------------------------------
: manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
1 | 4.1 kB 00:00
1 test 4,620
-----------------------------------------------------------------------------------------------
: subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Resolving Dependencies
Dependencies Resolved
===============================================================
=======
Size
===============================================================
=======
Installing:
===============================================================
=======
Install 1 Package
Downloading packages:
Running transaction
Installed:
samba.x86_64 0:4.2.3-10.el7
Complete!
--------------------------------------------------------------------------------------------
: subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Resolving Dependencies
Dependencies Resolved
===============================================================
=======
Size
===============================================================
=======
Installing:
Transaction Summary
===============================================================
=======
Install 1 Package
Downloading packages:
Running transaction
Installed:
samba-client.x86_64 0:4.2.3-10.el7
Complete!
------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
Syntax : [root@localhost /]# <chmod > space <777>space </Samba link directory
name>
------------------------------------------------------------------------------------
:set number
1 # This is the main Samba configuration file. For detailed information about the
2 # options listed here, refer to the smb.conf(5) manual page. Samba has a hug e
3 # number of configurable options, most of which are not shown in this exampl e.
4#
5 # The Official Samba 3.2.x HOWTO and Reference Guide contains step-by-step
6 # guides for installing, configuring, and using Samba:
7 # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
8#
9 # The Samba-3 by Example guide has working examples for smb.conf. This guide
is
11 #
12 # In this file, lines starting with a semicolon (;) or a hash (#) are
13 # comments and are ignored. This file uses hashes to denote commentary and
Etc………………………………………………………………..
Set cursor on last line and give paste cmd:p and remove semi colon(;), add path ,
Browseable, allow host and valid user
322 [public]
327 printable = no
Go to insert mode and add path ,Browseable ,allow host and valid user:
322 [public]
327 printable = no
329 Browseable=Yes
Esc :wq
To check cmd:
Step 8: Set user name and Password for Samba Account( its used for client access
the Server Host to give Username and Password:
[root@localhost /]#
Step 9:Service :enable Samba service (smb,nmb) on Server machine
[root@localhost /]#
----------------------------------------------------------------------------------------------
success
success
interfaces: eno16777736
sources:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
Type : ncpa.cpl
If you have any changes on this location automatically reflected on Samba link
directory(ie ,samba_dir).
You have share any files on samba directory (samba_dir),you can access and
edit the client side.