Skip to content
Technology News Information & Jobs

Technology News Information & Jobs

Ubuntu Tutorials, Ubuntu How To , Linux Tips, Tech Jobs

  • Work with US
  • Search Jobs
  • Post a Job
  • Contact Us
  • Ubuntu
    • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Themes
  • Linux
  • Laptops
  • Tutorials
  • Job Dashboard
  • Toggle search form

How To Install Samba on Ubuntu 20.04 LTS

Posted on May 15, 2020August 24, 2020 By admin No Comments on How To Install Samba on Ubuntu 20.04 LTS

Tutorial To Install Samba On Ubuntu 20.04 LTS

Samba is a free software re-implementation or open-source implementation of the SMB networking protocol. It was originally developed by Andrew Tridgell. It can function both as a domain controller or as a regular domain member.

In this tutorial, we will install Samba On Ubuntu 20.04 LTS and also configure it with Windows 10.

How To Install Samba on Ubuntu 20.04 LTS

With the help of Samba, We can share our share files with Windows systems. In this tutorial, we are using Windows 10.  We need to name our workgroup and here we are going with the default Windows workgroup and that is WORKGROUP.

For this tutorial, we’re going to be using a 192.168.2.0/24 network. Our Ubuntu 20.04 LTS will be using 192.168.2.1, While Windows 10 will be using 192.169.2.2.

At first, we need to add Ubuntu 20.04 LTS to the Windows host file. To do this, run the following command in Windows:

notepad C:\\Windows\System32\drivers\etc\hosts

Now, you need to add the local entry for the Ubuntu to be referenced by the named ubuntu2004 and save it.

192.168.1.3            ubuntu2004.localhost           ubuntu2004

Now, we have to add the Windows system name in the Ubuntu host file too. Run the commands below and type the IP with the hostname of Windows, save the file, and exit.

sudo nano /etc/hosts

Now, we need to enable file-sharing. Run the following commands in Windows with administrative privilege.

netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes

Install Samba On Ubuntu 20.04 LTS

READ More Relevant Stuff:  Install Ubuntu 20.04 Alongside With Windows 11 In Dual Boot

Run the following commands:

sudo apt update
sudo apt install samba

To verify the Samba services are running:

sudo systemctl status smbd

Let’s configure the Samba public share now.

Run the following command to open Samba configuration file by running the commands below. You should keep the backup of the file before editing.

sudo nano /etc/samba/smb.conf

Add the following line in

workgroup = WORKGROUP
   netbios name = ubuntu2004
   security = user
   proxy = no
   map to guest = bad user
.
.
interfaces = 127.0.0.0/8 eth0
.
.
server role = standalone server
obey pam restrictions = yes
.
.
[public]
   path = /samba/public
   browseable = yes
   guest ok = yes
   guest only = yes
   read only = no
   force user = nobody
   force create mode = 0777
   force directory mode = 0777

Now restart Samba services.

sudo systemctl restart smbd

You need to create a public folder where everyone should have access.

sudo mkdir -p /samba/public

Restart the Samba server. You can see the shared folder in Windows 10 or whatever Windows you are using.

How To Ubuntu, Ubuntu 20.04 Tags:filesharing, linux, samba, ubuntu

Post navigation

Previous Post: Make Ubuntu 20.04 LTS Look Like macOS
Next Post: Configure Lid Close Behavior Of Your Laptop With Ubuntu 20.04 LTS

Related Posts

Top Desktop Environments For Ubuntu 20.04 LTS Top Desktop Environments For Ubuntu 20.04 LTS [2023] Themes
Ubuntu 20.04.2 LTS Released, Download Now Ubuntu 20.04.2 LTS Released, Download Now Ubuntu 20.04
Install Mate Desktop On Ubuntu 20.04 LTS Install MATE Desktop Environment On Ubuntu 20.04 LTS Themes
How To Reload /etc/network/interfaces in Ubuntu 22.04? How To Reload /etc/network/interfaces in Ubuntu 22.04? How To Ubuntu
Install Microsoft Edge Browser on Ubuntu 20.04 Install Microsoft Edge Browser on Ubuntu 20.04 Ubuntu 20.04
Basic Idea Of The Linux Filesystem Described Basic Idea Of The Linux Filesystem Described How To Ubuntu

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Enable Hibernate in Ubuntu 22.04 LTS May 20, 2024
  • Popular Ubuntu Games: Top 5 Games To Play March 17, 2024
  • WordPress | Your site doesn’t include support for the “generateblocks/container” block GenerateBlocks Plugin February 11, 2024
  • Ubuntu Autoremove Command Debian Autoremove Command February 10, 2024
  • How To Mount Windows 11 Shares on Debian Linux December 7, 2023
  • Anonymous Browsing 101: A Deep Dive Into Residential Proxies November 20, 2023
  • How To Correctly Install Uninstall Linux Ubuntu Nvidia Drivers Fast October 31, 2023
  • Ethical Web Design: The Dos and Don’ts October 28, 2023
  • Understanding the Role of Security Operations Center October 25, 2023
  • The Positive Effects of AI Tools and Online Services on Students Successful Essay-Writing Skills October 3, 2023
  • Linux Wget Examples September 27, 2023

Categories

  • Android
  • Apple
  • Blogs
  • Debian
  • Fix
  • Gadgets
  • Game
  • Google
  • How To Ubuntu
  • Internet
  • Laptops
  • Linux
  • Linux Commands
  • Linux Game
  • Linux Mint
  • News
  • Operating Systems
  • Security
  • Technology
  • Themes
  • Tools
  • Tutorials
  • Ubuntu
  • ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Windows 11
  • Wordpress
  • Search Jobs
  • Post a Job
  • Job Dashboard
  • Contact Us
  • About US
  • Cookie Policy
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • Write For US

Tags

android apps centos ChatGPT command Commands Debian deepin Desktop docker Fedora fix game games Gaming gnome google kernel linux linux commands linux kernel Linux laptops Linux Mint Linux themes minecraft NVIDIA Python Raspberry Pi sysadmin themes ubuntu ubuntu 18.04 Ubuntu 18.04 LTS Ubuntu 20.04 ubuntu 20.04 lts Ubuntu 22.04 LTS Ubuntu games Ubuntu kernel ubuntu themes ubuntu tutorial VirtualBox Windows Windows 11 Wine WSL
itsubuntu.com is an Equal Opportunity Employer. For Advertisement, Jobs, Guest posts, and any other thoughts, email us at [email protected]
  • Bakery Order Writer (Buyer / Inventory Replenishment) – Full Time

    • Daniel, WY
    • Whole Foods Market
    • Full Time
  • Senior Grant Writer

    • Alhambra, CA
    • Global Urban Strategies Inc
    • Full Time
  • Contract Technical Writer

    • Lewiston, ME
    • Contiem
    • Full Time
  • Senior Grant Writer

    • Kenai, AK
    • Kenaitze Indian Tribe
    • Full Time
  • Technical Writer

    • Brooklyn, NY
    • Morph Enterprise
    • Full Time
  • Technical Writer

    • Austin, TX
    • netPolarity, Inc. (Saicon Consultants, Inc.)
    • Full Time
  • Senior Data Scientist (Hiring Immediately)

    • Berkeley, CA (Remote)
    • Cogitativo
    • Full Time
  • Technical Documentation Specialist

    • Dallas, TX
    • DropUp®
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme