How to install and configure Samba on OpenSUSE 42.1
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.
The network share is opened. Select the MyShare 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.
Select the program which we have created in the server side using a notepad application.
The file created in the server side can be opened in the client side of other OS using Samba share.
The installation and configuration of Samba on OpenSUSE is done successfully.
Comments ( 0 )
No comments available