• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install and configure the Samba server on oracle linux

  • 00:35 cat /etc/os-release
  • 00:51 yum -y install samba*
  • 01:11 systemctl enable smb
  • 01:26 systemctl start smb
  • 01:37 systemctl status smb
  • 01:53 systemctl disable firewalld
  • 02:04 setenforce 0
  • 02:18 vim /etc/samba/smb.conf
  • 03:42 mkdir /sambashare
  • 03:57 chmod 777 /sambashare/
  • 04:15 touch /sambashare/test
  • 04:31 useradd sambauser
  • 04:45 passwd sambauser
  • 05:06 smbpasswd -a sambauser
  • 05:37 systemctl restart smb
{{postValue.id}}

To Install Samba Server on Oracle Linux 8.5

Introduction

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

Installation Procedure:

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

[root@linuxhelp linuxhelp]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.5"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"

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

 [root@linuxhelp linuxhelp]# yum -y install samba*
Last metadata expiration check: 18:47:55 ago on Wed 25 May 2022 07:05:57 AM IST.
Package samba-client-libs-4.14.5-2.el8.x86_64 is already installed.
Package samba-common-4.14.5-2.el8.noarch is already installed.
Package samba-common-libs-4.14.5-2.el8.x86_64 is already installed.
Dependencies resolved.

================================================================================
 Package                    Arch   Version              Repository         Size
================================================================================
Installing:
 samba                      x86_64 4.15.5-5.el8         ol8_baseos_latest 867 k
 samba-client               x86_64 4.15.5-5.el8         ol8_baseos_latest 716 k
 samba-common-tools         x86_64 4.15.5-5.el8         ol8_baseos_latest 522 k
 samba-krb5-printing        x86_64 4.15.5-5.el8         ol8_baseos_latest 101 k
 samba-libs                 x86_64 4.15.5-5.el8         ol8_baseos_latest 175 k

 samba-pidl                 noarch 4.15.5-5.el8         ol8_baseos_latest 199 k
 samba-test                 x86_64 4.15.5-5.el8         ol8_baseos_latest 2.0 M
 samba-test-libs            x86_64 4.15.5-5.el8         ol8_baseos_latest 120 k
 samba-vfs-iouring          x86_64 4.15.5-5.el8         ol8_appstream     104 k
.
.
Complete!

Step3: Enable the samba service by using the below command

[root@linuxhelp 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 linuxhelp]# systemctl start smb

Step 5: Check the Status of samba service by using the below command

[root@linuxhelp linuxhelp]# systemctl status smb
● smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset:>
   Active: active (running) since Thu 2022-05-26 01:54:33 IST; 4s ago

Step 6: Disable the firewall by using the below command

 [root@linuxhelp linuxhelp]# systemctl disable firewalld

Step 7: Disable SELinux by using the below command

[root@linuxhelp linuxhelp]# setenforce 0

Step 8: Create Configuration to Access Samba by using the below command

[root@linuxhelp linuxhelp]# vim /etc/samba/smb.conf

[samba]
       path = /sambashare
       comment = samba
       browseable = yes
       writable = yes
       guest ok = yes
       read only = no

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

 [root@linuxhelp linuxhelp]# mkdir /sambashare

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

[root@linuxhelp linuxhelp]# chmod 777 /sambashare/

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

 [root@linuxhelp linuxhelp]# touch /sambashare/test

Step 12: Create a user by using the below command

 [root@linuxhelp linuxhelp]# useradd sambauser

Step 13: Add the normal user to samba user by using the below command

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

Step 14: Restart the samba service by using the below command

 [root@linuxhelp linuxhelp]# systemctl restart smb

Step 15: Go to windows machine click windows button + R to Run and Enter the IP address as shown in the below image SNAP1

Step 16: Enter the Samba user name and password as shown in the below image SNAP2

Step 17: The samba share works as shown in the image below SNAP3

With this the Installation of samba server on oracle linux 8.5 has come to an end.

Tags:
jayce
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Q1.Is samba is free of cost ?

A

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

Q

Q2.what are the protocol used by samba ?

A

A2.SMB/CIFS protocols.

Q

Q3.what is the definition of SMB?

A

A3.Server Message Block.

Q

Q4.what is the latest version of samba?

A

A4. 4.15 is the latest version.last release September 20, 2021.

Q

Q5.samba printer sharing support windows and linux?

A

A5.yes! , its work on both environment.

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 Luke ?
workbench for debian

I am using workbench in CentOS whereas now I need to use Debian Operating system so could you please help to install and use in Debian?

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.