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

How to install and configure Samba Share in Rocky Linux 8.6

  • 00:28 cat /etc/os-release
  • 00:42 yum -y install samba*
  • 01:04 systemctl enable smb
  • 01:14 systemctl start smb
  • 01:39 firewall-cmd --add-service=samba --permanent
  • 02:06 setenforce 0
  • 02:16 vim /etc/samba/smb.conf
  • 04:06 chmod 777 /share/
  • 04:35 useradd sambauser
  • 04:49 smbpasswd -a sambauser
  • 05:14 systemctl restart smb
7158

To Install And Configure Samba Share In Rocky Linux 8.6

Introduction

Samba is an important component to seamlessly integrating Linux/Unix servers and desktops into active directory environments. It can perform both as a domain controller and as a regular domain member.

Installation Procedure:

Step 1: Check the OS version by using the below command

root@linuxhelp ~]# cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
ANSI_COLOR="0;32"

Step 2: Install the Samba Server by using the below command

[root@linuxhelp ~]# yum -y install samba*
Rocky Linux 8 - AppStream                                         3.0 MB/s | 8.8 MB     00:02    
Rocky Linux 8 - BaseOS                                            1.1 MB/s | 3.6 MB     00:03    
Rocky Linux 8 - Extras                                            7.4 kB/s |  11 kB     00:01    
Package samba-client-libs-4.15.5-5.el8.x86_64 is already installed.
Package samba-common-4.15.5-5.el8.noarch is already installed.
Package samba-common-libs-4.15.5-5.el8.x86_64 is already installed.
Dependencies resolved.


==================================================================================================
 Package                            Architecture   Version                Repository         Size
==================================================================================================
Installing:
 samba                              x86_64         4.15.5-8.el8_6         baseos            867 k
 samba-client                       x86_64         4.15.5-8.el8_6         baseos            714 k
 samba-common-tools                 x86_64         4.15.5-8.el8_6         baseos            521 k
 samba-krb5-printing                x86_64         4.15.5-8.el8_6         baseos            101 k
 samba-libs                         x86_64         4.15.5-8.el8_6         baseos            174 k
 samba-pidl                         noarch         4.15.5-8.el8_6         baseos            199 k

Step3: Enable the samba service by using the below command

[root@linuxhelp ~]# systemctl enable smb
Created symlink /etc/systemd/system/multi-user.target.wants/smb.service → /usr/lib/systemd/system/smb.service.

Step4: Start the samba service by using the below command

[root@linuxhelp ~]# systemctl start smb

Step 5: Check the status of Samba service by using the below command

[root@linuxhelp ~]# systemctl status smb
● smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2022-07-01 04:30:42 EDT; 9s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
 Main PID: 40625 (smbd)
   Status: "smbd: ready to serve connections..."
    Tasks: 4 (limit: 17274)
   Memory: 13.1M

Step 6: Add firewall by using the below command

[root@linuxhelp ~]# firewall-cmd --add-service=samba --permanent 
success

Step 7: Reload the firewall by using the below command

[root@linuxhelp ~]# firewall-cmd --reload 
success

Step 8: Disable SELinux by using the below command

[root@linuxhelp ~]# setenforce 0

Step 9: Create Configuration to access Samba by using the below command

[root@linuxhelp ~]# vim /etc/samba/smb.conf
[samba]
       path = /share
       comment = samba
       browseable = yes
       writable = yes
       guest ok = yes
       read only = no

Step 10: Create a Directory in root by using the below command

[root@linuxhelp ~]# mkdir /share

Step 11: Grant permission to the directory by using the below command

[root@linuxhelp ~]# chmod 777 /share/

Step 12: Create a file in samba share Directory by using the below command

[root@linuxhelp ~]# touch /share/test

Step 13: Create a user by using the below command

[root@linuxhelp ~]# useradd sambauser

Step 14: Add the normal user to Samba user by using the below command

[root@linuxhelp ~]# smbpasswd -a sambauser
Retype new SMB password:
Added user sambauser.

Step 15: Restart the Samba service by using the below command

[root@linuxhelp ~]# systemctl restart smb

Step 16: Go to windows machine click windows + R to Run and Enter your IP address as shown in the below image snap 1

Step 17: Enter the Samba user name and password as shown in the below image snap 2

Step 18: The samba share works as shown in the image below snap 3

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install and configure Samba share in Rocky Linux 8.6. Your feedback is much welcome.

Tags:
muhammad
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

Is Samba free of cost?

A

Samba is an open source software, released under the GPL license.

Q

What is the protocol used by Samba?

A

SMB/CIFS protocols.

Q

What is the definition of SMB?

A

Server Message Block.

Q

What is the latest version of Samba?

A

15 is the latest version which is lastly released on September 20, 2021.

Q

Is Samba printer sharing support Windows and Linux?

A

yes, its work in both environment.

Related Tutorials in How to install and configure Samba Share in Rocky Linux 8.6

Related Tutorials in How to install and configure Samba Share in Rocky Linux 8.6

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 Xrdp Server (Remote Desktop) on Oracle Linux 8.5
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
Oct 17, 2022
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022
How to Install and Configure Mega in Linux
How to Install and Configure Mega in Linux
Jul 19, 2016
How to use Aureport command on Linux
How to use Aureport command on Linux
Nov 28, 2017
How to install Development tools on Linux
How to install Development tools on Linux
Jun 12, 2018
How to Install mod_ssl and SSL certificate on Oracle Linux
How to Install mod_ssl and SSL certificate on Oracle Linux
Dec 30, 2021

Related Forums in How to install and configure Samba Share in Rocky Linux 8.6

Related Forums in How to install and configure Samba Share in Rocky Linux 8.6

Linux
jayce class=
shasum command not found
May 5, 2017
Linux
stephan class=
How to list all samba users
Jan 12, 2018
Samba
noah class=
How to reset SAMBA user password
Sep 6, 2017
pv command
muhammad class=
pvcreate command not found error
May 9, 2017
Linux
henry class=
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Apr 25, 2017
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Linux
baseer class=
single command to apply setfacl for multiple user at a time
Jan 23, 2018
Linux
beulah class=
What does mean by 0 0 value in fstab file
Jan 2, 2018

Related News in How to install and configure Samba Share in Rocky Linux 8.6

Related News in How to install and configure Samba Share in Rocky Linux 8.6

Anbox, the Android-to-Linux tool the developers have been waiting for
Anbox, the Android-to-Linux tool the developers have been waiting for
Apr 17, 2017
Linus Torvalds stops signing Linux kernel RC tarballs
Linus Torvalds stops signing Linux kernel RC tarballs
May 17, 2017
Capsule8 Launches Linux-Based Container Security Platform
Capsule8 Launches Linux-Based Container Security Platform
Feb 14, 2017
Symantec updates Management console product
Symantec updates Management console product
Nov 22, 2017
Latest Linux driver release feature seven AMD Vega
Latest Linux driver release feature seven AMD Vega
Mar 23, 2017
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
Apr 9, 2019
Microsoft makes its Azure App service now available on Linux Systems
Microsoft makes its Azure App service now available on Linux Systems
Sep 7, 2017
Docker friendly Alpine Linux gets hardened Node.js
Docker friendly Alpine Linux gets hardened Node.js
Apr 19, 2017
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 keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

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.