0% found this document useful (0 votes)
15 views

Configuring Samba server

Uploaded by

anilkumar.n117
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Configuring Samba server

Uploaded by

anilkumar.n117
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Configuring Samba server

Step 1: yum install samba

# cd /etc/samba (check directory by Default with OS is available )

Step 2: take the back up smb.conf

#cp smb.conf smb.conf_Backup

Step 3: edit the samba file.

# vi smb.conf

#======================= Global Settings =====================================

[global]
# ----------------------- Network Related Options -------------------------
#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# specifiy it as a per share option as well
#
# workgroup = MYGROUP (Change name to WORKGROUP)

workgroup = WORKGROUP (this name is belong to windows client group or domain name)
server string = Samba Server Version %v

# A publicly accessible directory, but read only, except for people in


# the "staff" group
; [public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = +staff

[Samba-(Linux Directory)]
path = /sambawindows
public = yes
writable = yes
printable = no

Step 4: create directory for sharing

# mkdir /sambawindows

Step 5: create a user for purpose of windows sharing directory

# useradd –d /home/user1 srioct1

Step 6: password for samba user1


#smbpasswd –a srioct1

Step 7: to check the users for samba


#pbedit –L

Step 8: to delete user using below command.


# pdbedit –x –u
Step 9: to see the configured shared path & accesss
#testparm

Step 10: Start service smb &nmb

# service smb start


# service nmb start

Step 11: check the firewall to be disabled.

#system-config-firewall-tui
Check the status of firewall.
#getenforce

Disable the firewall.


#setenforce 0

# cat /etc/samba/smb.conf

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy