Professional Documents
Culture Documents
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
Sambaisafreeandopensourcesoftwarepackagethatprovidesseamlessfileandprint
servicestoSMB/CIFSclients.Sambaisfreelyavailable,unlikeotherSMB/CIFS
implementationsandallowsforinteroperabilitybetweenLinux/UnixserversandWindows
OSbasedclients.UsingSambawecaneasilysharefilesandfoldersbetweenGNU/Linuxand
WindowsOSsystems.
InthistutorialwearegoingtoimplementSambaserveronOpenSUSE13.1.
InstallSamba
Loginasrootuser:
>su
InstallSambawithfollowingcommand:
#zypperinstallsamba*
ConfigureFullyAccessedAnonymousShare
Letuscreatedirectory/share1andsetfullpermission.Anybodycanaccessthisshare:
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
1/10
9/26/2016
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
#mkdir/share1
#chmodR777/share1/
OpenupSambaconfigurationfile/etc/samaba/smb.conffile:
#vi/etc/samba/smb.conf
Andeditasfollows
Makesurethatyouhavethefollowinglinein[global]section.Ifnotfound,justadditas
shownbelow:
[...]
passdbbackend=tdbsam
[...]
Scrolldownfurtherandaddthissharedetails
atthebottomoftheSambaconfigurationfile:
[FullShare]
path=/share1
writable=yes
browsable=yes
guestok=yes
guestonly=yes
createmode=0777
directorymode=0777
Saveandclosethefile.EnableandstartSambaservicetosavethechanges:
#systemctlenablesmb.service
#systemctlenablenmb.service
#systemctlstartsmb.service
#systemctlstartnmb.service
TestSambaConfiguration
ExecutethefollowingcommandtoverifytheSambaconfigurationfile.Itdisplaystheerrorsif
wehaveany:
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
2/10
9/26/2016
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
#testparm
Theabovecommandwilldisplaytheoutputasshownbelow:
Loadsmbconfigfilesfrom/etc/samba/smb.conf
rlimit_max:increasingrlimit_max(1024)tominimumWindowslimit(16384)
Can'tfindincludefile/etc/samba/dhcp.conf
Processingsection"[homes]"
Processingsection"[profiles]"
Processingsection"[users]"
Processingsection"[groups]"
Processingsection"[printers]"
Processingsection"[print$]"
Processingsection"[FullShare]"
LoadedservicesfileOK.
Serverrole:ROLE_STANDALONE
Pressentertoseeadumpofyourservicedefinitions
[global]
maptoguest=BadUser
printcapname=cups
logonpath=\\%L\profiles\.msprofile
logondrive=P:
logonhome=\\%L\%U\.9xprofile
usershareallowguests=Yes
idmapconfig*:backend=tdb
cupsoptions=raw
[homes]
comment=HomeDirectories
validusers=%S,%D%w%S
readonly=No
inheritacls=Yes
browseable=No
[profiles]
comment=NetworkProfilesService
path=%H
readonly=No
createmask=0600
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
3/10
9/26/2016
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
directorymask=0700
storedosattributes=Yes
[users]
comment=Allusers
path=/home
readonly=No
inheritacls=Yes
vetofiles=/aquota.user/groups/shares/
[groups]
comment=Allgroups
path=/home/groups
readonly=No
inheritacls=Yes
[printers]
comment=AllPrinters
path=/var/tmp
createmask=0600
printable=Yes
printok=Yes
browseable=No
[print$]
comment=PrinterDrivers
path=/var/lib/samba/drivers
writelist=@ntadmin,root
forcegroup=ntadmin
createmask=0664
directorymask=0775
[FullShare]
path=/share1
readonly=No
createmask=0777
directorymask=0777
guestonly=Yes
guestok=Yes
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
4/10
9/26/2016
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
Idontwanttomessupiptables,soiturneditoff:
#rcSuSEfirewall2stop
TestAnonymousSambaShareonWindowsOSClient
LogintoWindowsOSmachineandgotoStart>Run.EntertheIPaddressofyourSamba
server.
NowyoullabletoaccessthefullyaccessedSambasharefromyourWindowsOSclients.
Createsomefilesandfoldersinsidetheshare.Inmycase,Icreatedafoldercalled
unixmeninmyfullyaccessedanonymousSambasharecalledFullShare.
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
5/10
9/26/2016
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
CreateanAuthenticatedShare
LetuscreateaSambausercalledskunderSambagroupcalledsmbgroup:
#useraddsk
#passwdsk
#groupaddsmbgroup
#usermodaGsmbgroupsk
NowassigntheusersktoSambauserdatabasewithfollowingcommand:
#smbpasswdask
NewSMBpassword:
RetypenewSMBpassword:
Addedusersk.
Createanewsharecalled/share2andassignthissharetosmbgroup,sothattheusersof
smbgroupcanaccessthe/share2directory:
#mkdir/share2
#chmodR755/share2/
#chownRsk:smbgroup/share2
Addtheabove/share2directorydetailsinSambaconfigurationfileasshownbelow
Openupsambaconfigurationfile:
#vi/etc/samba/smb.conf
Addthe/share2detailsattheend:
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
6/10
9/26/2016
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
[secure]
path=/share2
writable=yes
browsable=yes
guestok=no
validusers=@smbgroup
RestartSambaservicetosavethechanges:
#systemctlrestartsmb.service
#systemctlrestartnmb.service
Nowtesttheconfigurationfilewithfollowingcommand:
#testparm
Youmayseethefollowinglikeoutput:
Loadsmbconfigfilesfrom/etc/samba/smb.conf
rlimit_max:increasingrlimit_max(1024)tominimumWindowslimit(16384)
Can'tfindincludefile/etc/samba/dhcp.conf
Processingsection"[homes]"
Processingsection"[profiles]"
Processingsection"[users]"
Processingsection"[groups]"
Processingsection"[printers]"
Processingsection"[print$]"
Processingsection"[FullShare]"
Processingsection"[secure]"
LoadedservicesfileOK.
Serverrole:ROLE_STANDALONE
Pressentertoseeadumpofyourservicedefinitions
[global]
maptoguest=BadUser
printcapname=cups
logonpath=\\%L\profiles\.msprofile
logondrive=P:
logonhome=\\%L\%U\.9xprofile
usershareallowguests=Yes
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
7/10
9/26/2016
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
idmapconfig*:backend=tdb
cupsoptions=raw
[homes]
comment=HomeDirectories
validusers=%S,%D%w%S
readonly=No
inheritacls=Yes
browseable=No
[profiles]
comment=NetworkProfilesService
path=%H
readonly=No
createmask=0600
directorymask=0700
storedosattributes=Yes
[users]
comment=Allusers
path=/home
readonly=No
inheritacls=Yes
vetofiles=/aquota.user/groups/shares/
[groups]
comment=Allgroups
path=/home/groups
readonly=No
inheritacls=Yes
[printers]
comment=AllPrinters
path=/var/tmp
createmask=0600
printable=Yes
printok=Yes
browseable=No
[print$]
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
8/10
9/26/2016
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
comment=PrinterDrivers
path=/var/lib/samba/drivers
writelist=@ntadmin,root
forcegroup=ntadmin
createmask=0664
directorymask=0775
[FullShare]
path=/share1
readonly=No
createmask=0777
directorymask=0777
guestonly=Yes
guestok=Yes
[secure]
path=/share2
validusers=@smbgroup
readonly=No
TestAuthenticatedShareonWindowsOSClient
NowgototheWindowsOSclientandchecktheauthenticatedshare.Itwillaskyoutoenter
usernameandpasswordtoaccesstheSambashares.Entertheusernameandpasswordthat
youhavecreatedearlier.Youredone!
Thatsit.NowyoullabletoaccesstheSambashares.
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
9/10
9/26/2016
InstallandConfigureSambaServeronOpenSUSE13.1|Unixmen
WhatYouNeedtoKnowAbout
NeuropathyNervePain
CustomValidationMessagesfor
HTML5FormConstraints
TriggerHTML5FormValidationon
JavaScriptSubmission
(form.submit())
JavaScriptFireonSubmitEvent
HandlerProgrammaticallybyCalling
form.submit()
"Stunning"TruthAboutNeuropathy
NervePain
78YearOldGolferFindsCureFor
HisNervePain
PassingDataAcrossComponents
withContexts(childContextTypes,
getChildContext(),contextTypes)i
ReactJS
RemoveaMountedReact
Componentwith
React.unmountComponentAtNode()
ReactIntegratingRoutingto
MaterialUIsLeftNav(orOther
Components)
https://www.unixmen.com/installandconfiguresambaserveronopensuse131/
10/10