• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial 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
7004

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

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.

Related Tutorials in How to Install and configure the Samba server on oracle linux

Related Tutorials in How to Install and configure the Samba server on oracle linux

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 the Samba server on oracle linux

Related Forums in How to Install and configure the Samba server on oracle linux

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 the Samba server on oracle linux

Related News in How to Install and configure the Samba server on oracle linux

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 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.