• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install and configure Samba on OpenSUSE 42.1

1760

How to install and configure Samba on OpenSUSE 42.1

Samba is a free software of SMB (Server Message Block)/CIFS networking protocol that provides file and print services for various Microsoft Windows clients and integrate with a domain controller. Samba allows a non-Windows server to communicate with the same networking protocol as the Windows products. This article explains the installation and configuration process of Samba on OpenSUSE 42.1.

Configuration procedure

To use the Samba, you will need to share a same folder between the server and the client which is in the given directory path /home/user with Samba. Next install Samba by running the following command.

linuxhelp1:~ # zypper install samba*
Loading repository data...
Warning: Repository ' openSUSE-Leap-42.1-Update'  appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Resolving package dependencies...

The following 12 NEW packages are going to be installed:
  libsamba-policy0 libtalloc-devel perl-Parse-Yapp pyldb python-tdb
  python-tevent samba-core-devel samba-doc samba-pidl samba-python samba-test
  samba-test-devel
.
.
.
(54/58) Installing: samba-winbind-32bit-4.2.4-33.1 .......................[done]
(55/58) Installing: samba-winbind-4.2.4-33.1 .............................[done]
Additional rpm output:
Updating /etc/sysconfig/samba...

(56/58) Installing: samba-test-4.2.4-33.1 ................................[done]
(57/58) Installing: libsamba-policy0-4.2.4-33.1 ..........................[done]
(58/58) Installing: samba-python-4.2.4-33.1 ..............................[done]

Go to the samba configuration file smb.conf and add the following lines in the file. Save and exit from the file.

linuxhelp1:~ # vim /etc/samba/smb.conf

[MyShare]       
         path = /home/user
         writable = yes
         browsable = yes
         guest ok = yes
         guest only = yes
         create mode = 0777
         directory mode = 0777

To check the configuration procedure, execute the following command.

linuxhelp1:/home # testparm

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Can' t find include file /etc/samba/dhcp.conf
Processing section " [homes]" 
Processing section " [profiles]" 
Processing section " [users]" 
Processing section " [groups]" 
Processing section " [printers]" 
Processing section " [print$]" 
Processing section " [MyShare]" 
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions. Then start your smb and nmb service by running the following commands.

linuxhelp1:~ # systemctl start nmb.service
linuxhelp1:~ # systemctl start smb.service

Create a file named SuSEfirewall2 using vim editor and enter the following firewall settings in the file. Save and exit from the file.

linuxhelp1:~ # vim /etc/sysconfig/SuSEfirewall2

# Example: " samba-server nfs-kernel-server" 
FW_CONFIGURATIONS_EXT=" samba-server nfs-kernel-server" 

To allow services and Samba services, execute the following command named Yast and go to option on the menu Security and users - > Firewall - > Allowed services and give the samba service by clicking add button. Click finish to save the changes.

linuxhelp1:~ # yast2

Go to the client side namely windows and enter the samba server IP \192.168.7.217 on run application.

run application

The network share is opened. Select the MyShare folder.
share folder

Go to your server side and create a text file inside /home/user/ directory path and execute the set of commands as follows.

linuxhelp1:~ # cd /home/user
linuxhelp1:/home/user #   cat >  file

This is the first file in samba configuration share. Now go to the windows client side and open the text file inside the MyShare folder.
files in share

Select the program which we have created in the server side using a notepad application.
shared file

The file created in the server side can be opened in the client side of other OS using Samba share.

shared test file

The installation and configuration of Samba on OpenSUSE is done successfully.

Tags:
sebastian
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What for testparm is used?

A

It is used to check with the syntax error and other error in the smaba configuration.

Q

What is the use of Samba in Linux?

A

Samba is an open-source software suite that runs on Unix/Linux based platforms but is able to communicate with Windows clients like a native application.

Q

Major difference between nfs and samba?

A

In nfs NFS work's only Linux Operation System and wheras in samba work's both Linux and windows OS

Q

Why Do I Not Have a server services parameter in My smb.conf File?

A

The server services options in the smb.conf file are set during provisioning a Samba AD DC based on the settings you made during this process. If this parameter is not listed in the [global] section of your smb.conf file,

Q

Can I Disable Some of the server services options in the smb.conf File?

A

However, there are a few situations where you can manually update the options:

To disable the network printing spooler:

Change the spoolss option to -spoolss.

To switch the DNS back end:

For details, see Changing the DNS Back End of a Samba AD DC.

Related Tutorials in How to install and configure Samba on OpenSUSE 42.1

Related Tutorials in How to install and configure Samba on OpenSUSE 42.1

How to install and configure samba setup in Linux mint - 18.3
How to install and configure samba setup in Linux mint - 18.3
Mar 26, 2018
How to Install and Configure Samba on Linux Mint 20
How to Install and Configure Samba on Linux Mint 20
Nov 9, 2020
How to Install and update openssl on opensuse15.1
How to Install and update openssl on opensuse15.1
Nov 15, 2019
How to create SSL certificate in OpenSUSE
How to create SSL certificate in OpenSUSE
Aug 12, 2017
How to Install AnyDesk on opensuse15.1
How to Install AnyDesk on opensuse15.1
Oct 30, 2019
How to configure Apache Virtual Host in OpenSUSE
How to configure Apache Virtual Host in OpenSUSE
Nov 1, 2016
How to install Webmin in OpenSUSE
How to install Webmin in OpenSUSE
Nov 7, 2016
How to install Wordpress on opensuse15.1
How to install Wordpress on opensuse15.1
Nov 27, 2019

Related Forums in How to install and configure Samba on OpenSUSE 42.1

Related Forums in How to install and configure Samba on OpenSUSE 42.1

Linux
stephan class=
How to list all samba users
Jan 12, 2018
Samba
noah class=
How to reset SAMBA user password
Sep 6, 2017
Pligg
aiden class=
CMS : Pligg install on opensuse
Oct 6, 2017
Apache
rebeccajazz class=
Apache2 : mod_proxy in opensuse
Jan 3, 2018
OpenSUSE
dalogui class=
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web
Jul 15, 2019
OpenSUSE
victorsamuel class=
exec: "git": executable file not found in $PATH
Nov 16, 2017
OpenSUSE
lucas class=
best browser for OpenSUSE
Apr 17, 2017
Apache
rolando class=
How to find apache user in opensuse
Sep 23, 2017

Related News in How to install and configure Samba on OpenSUSE 42.1

Related News in How to install and configure Samba on OpenSUSE 42.1

openSUSE Leap 42.3 Officially Released
openSUSE Leap 42.3 Officially Released
Jul 27, 2017
Samba vulnerability calls to mind WannaCry fears to Linux/ UNIX
Samba vulnerability calls to mind WannaCry fears to Linux/ UNIX
May 30, 2017
Tyson Foods Honored as SUSE Customer of the Year
Tyson Foods Honored as SUSE Customer of the Year
Feb 11, 2017
SUSE Soon To Be Largest Independent Linux Vendor
SUSE Soon To Be Largest Independent Linux Vendor
Apr 14, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.