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:  Ubuntu 20.04 LTS Available On Microsoft Store

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

Ubuntu 20.10 Groovy Gorilla Release Schedule Ubuntu 20.10 Groovy Gorilla Daily Builds Now Available For Download How To Ubuntu
Ubuntu system cleaner List Of System Cleaning Tools For Ubuntu Ubuntu 20.04
How To Install Ubuntu On Raspberry Pi How To Install Ubuntu On Raspberry Pi [2021 Edition] Linux
Downgrade Packages On Linux System: Linux Guide 2020 Downgrade Packages On Linux System: Linux Guide 2022 Linux
Fix "The following signatures couldn’t be verified": Ubuntu 22.04 GPG error Fix “The following signatures couldn’t be verified” : Ubuntu 22.04 GPG error How To Ubuntu
Best Way To Upgrade To Ubuntu 21.10 Best Way To Upgrade To Ubuntu 21.10 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]
  • Lead Data Scientist

    • Sunnyvale, CA (Remote)
    • Walmart Global Tech
    • Full Time
  • Technical Writer

    • Orlando, FL
    • LHH
    • Full Time
  • Grant Writer/Sourcer

    • Lewisville, TX
    • BayMark Health Services
    • Full Time
  • Specifications Writer

    • Los Angeles, CA
    • Northern Impact
    • Full Time
  • Writer

    • Austin, TX
    • Avance Consulting
    • Full Time
  • Technical Writer

    • Washington DC
    • ACL Digital
    • Full Time
  • Technical Writer (Local Candidates – Meetings onsite)

    • Richmond, VA
    • TECHEAD
    • Full Time
  • AML SAR Writer

    • New Castle, PA
    • Pyramid Consulting, Inc
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme