• Home
  • Affiliate Disclosure
  • Contact Us
Technology | Software Reviews | Product Reviews | Internet Marketing
  • Home
  • Tech
    • All
    • Mobile
    Data Literate Workforce

    Significant Advantages Of A Data Literate Workforce

    What Is Data Literacy

    What Is Data Literacy And Why Is It essential For Every Business?

    Full Stack Development

    7 Tools And Technologies For Full Stack Development

    Salesforce Export Data

    Salesforce Export Data: Hevo’s Guide For Beginners

    Cloud-based CRM Software

    What Is A Cloud-based CRM Software

    Logistics Technology

    4 Benefits Of Incorporating Logistics Technology For Companies

    Surge Protectors

    Surge Protectors And How They Work

    Recruitment Assessment Tools

    Harver Tool Alternatives 2022: 10 Best Recruitment Assessment Tools

    Wordtune

    Wordtune Alternatives 2022: 10 Great AI-Powered Writing Tools

  • Fintech
    El Salvador

    El Salvador – The Country Where You Can Use Bitcoins Legally!

    Cryptocurrency Is Becoming A Financial Force

    5 Signs Cryptocurrency Is Becoming A Financial Force To Be Reckoned With

    What All You Need To Know For A Healthy Crypto Investment

    Easy Ways To Enhance Your Crypto Earnings

    India And Bitcoin News

    Can Bitcoin And Altcoin Replace Fiat Currencies?

    How College Students Can Make Money As Part-Time Crypto Traders

    What Is Candlestick In Trading?

    What Is Defi (Decentralised Finance)

  • Blockchain
    Cryptocurrency And Cyber Insurance: A Form Of Mutualism

    Cryptocurrency And Cyber Insurance: A Form Of Mutualism

    Crypto Loans

    4 Essential Benefits Of Crypto Loans

    Blockchain Security

    Why Blockchain Security Is Good For You

    Blockchain Technology

    Blockchain Technology Explained

    VC Funding For Blockchain

    3 Proofs That Blockchain Will Soon Revolutionize Mortgage Lending

    Blockchain Could Help Advertisers

    The Blockchain Could Help Advertisers Lock Up Our Attention

    Blockchain Technology

    How Blockchain Technology Is About To Transform Sharemarket Trading

    Deloitte's 2020 Global Survey

    Deloitte’s 2020 Global Survey: Blockchain Becomes Top Strategic Priority For Majority Of Organizations

    VC Funding For Blockchain

    Top Blockchain-Based Security Solutions In 2020

  • E-Commerce
    E-commerce Website Development

    Top Tips For Your E-commerce Website Development Process

    How To Make Money With Dropshipping

    How To Make Money With Dropshipping

    Digital Marketing For Ecommerce

    The Value In Investing In Digital Marketing For Ecommerce

    16 Best eCommerce Software Platforms For Online Business

    16 Best eCommerce Software Platforms For Online Business

    ecommerce ideas

    6 Things To Consider When You are Running an E-Commerce Business

    3dcart- ecommerce Platforms

    Best e-Commerce Software Platforms For Online Business

    starting a clothing business

    8 Things You Should Know If Starting a Clothing Business

    Use Bubble Wrap

    How To Use Bubble Wrap To Ship Fragile Items

  • Lifestyle
    Hoboken apartments

    Family-Friendly Activities In The Tri-State Area

    Harry Potter Costume

    The Best Harry Potter Costumes To Bring Your Magical Fantasies To Life

    fun things to do on birthday

    10 Amazing Things You Must Do On Your Birthday

    Better Hair Quality

    Women Need A Better Hair Quality All The Time

    Is Your Office Job Killing You Slowly

    Is Your Office Job Killing You Slowly?

    Healthy Work-Life Balance

    Top Tips To Maintain A Healthy Work-Life Balance

    arbie Sole Tattoo

    Barbie Sole Tattoo Trends Blowing Up On Instagram

    Dumbest Fashion Trends In History

    From Muslin Dresses To Corsets: 17 Dumbest Fashion Trends In History

    How to apply foundation in the best way

    How To Apply Foundation In The Best Way?

  • Inbound Marketing
    • All
    • Content Marketing
    • Email Marketing
    Grow Your Email List

    8 Actionable Ways (Tested) To Grow Your Email List In 2022

    Competitive Analysis

    A Complete Guide On Competitive Analysis For Beginners

    EDM Marketing

    How EDM Marketing Is Different From Email Marketing? Which One Is Better?

    The State of Digital Marketing in Bangkok

    The State Of Digital Marketing In Bangkok

    Meme Marketing

    Meme Marketing – Why Are Brands Smiling About It

    Better Content Marketing

    Top 14 Essential Tips For Better Content Marketing

    Email open rates

    Personalization In Email Marketing: How To Increase Email Open Rates?

    Tech Blogging: An Era Ends? Or, A New Begining!

    Blog Strategy For Sustainable Content Marketing Business

    Influencer Marketing

    How To Improve Your Content Strategy With Influencer Marketing

  • Online Marketing
    • All
    • Mobile Marketing
    • Search Engine Marketing
    • Search Engine Optimization
    • Social Media Marketing
    Knowing the SEO Basics

    Knowing The SEO Basics

    SMS Marketing Mistakes to Avoid

    SMS Marketing Mistakes To Avoid

    YouTube Marketing

    10 Ways How To Get Started With YouTube Marketing

    What To Expect from Technical SEO Services

    What To Expect from Technical SEO Services

    seo roi

    Why Should You Measure And Track Your SEO Success

    External Link

    What Is External Link, And How Does It Improve SEO?

    A Comprehensive Beginner’s Guide To Learn The Basics Of Digital Marketing

    How To Include External Links In Your Content To Boost Your SEO

    The Beginner’s Guide To Understanding Link Building And How It Can Boost Your Site’s Ranking

  • Software
    Salesforce: How Does It Work

    BigQuery To Salesforce: How Does It Work?

    Scheduling A Painless Job

    Top 10 All-In-One Automated Platforms That Make Scheduling A Painless Job

    Invalua

    Ivalua Alternatives 2022: 10 Best Spend Management Software

    Booket

    Booket Alternatives 2022: 10 Best Salon Management Software

    Recruitment Assessment Tools

    Harver Tool Alternatives 2022: 10 Best Recruitment Assessment Tools

    Wordtune

    Wordtune Alternatives 2022: 10 Great AI-Powered Writing Tools

    Eduflow

    Eduflow Alternatives 2022: 10 Best Learning Management Solutions

    Payroll process

    This Is How You Can Make The Payroll Process More Strategic And Organized

    Best HR Software

    How To Choose The Best HR Software For Your Work?

No Result
View All Result
  • Home
  • Tech
    • All
    • Mobile
    Data Literate Workforce

    Significant Advantages Of A Data Literate Workforce

    What Is Data Literacy

    What Is Data Literacy And Why Is It essential For Every Business?

    Full Stack Development

    7 Tools And Technologies For Full Stack Development

    Salesforce Export Data

    Salesforce Export Data: Hevo’s Guide For Beginners

    Cloud-based CRM Software

    What Is A Cloud-based CRM Software

    Logistics Technology

    4 Benefits Of Incorporating Logistics Technology For Companies

    Surge Protectors

    Surge Protectors And How They Work

    Recruitment Assessment Tools

    Harver Tool Alternatives 2022: 10 Best Recruitment Assessment Tools

    Wordtune

    Wordtune Alternatives 2022: 10 Great AI-Powered Writing Tools

  • Fintech
    El Salvador

    El Salvador – The Country Where You Can Use Bitcoins Legally!

    Cryptocurrency Is Becoming A Financial Force

    5 Signs Cryptocurrency Is Becoming A Financial Force To Be Reckoned With

    What All You Need To Know For A Healthy Crypto Investment

    Easy Ways To Enhance Your Crypto Earnings

    India And Bitcoin News

    Can Bitcoin And Altcoin Replace Fiat Currencies?

    How College Students Can Make Money As Part-Time Crypto Traders

    What Is Candlestick In Trading?

    What Is Defi (Decentralised Finance)

  • Blockchain
    Cryptocurrency And Cyber Insurance: A Form Of Mutualism

    Cryptocurrency And Cyber Insurance: A Form Of Mutualism

    Crypto Loans

    4 Essential Benefits Of Crypto Loans

    Blockchain Security

    Why Blockchain Security Is Good For You

    Blockchain Technology

    Blockchain Technology Explained

    VC Funding For Blockchain

    3 Proofs That Blockchain Will Soon Revolutionize Mortgage Lending

    Blockchain Could Help Advertisers

    The Blockchain Could Help Advertisers Lock Up Our Attention

    Blockchain Technology

    How Blockchain Technology Is About To Transform Sharemarket Trading

    Deloitte's 2020 Global Survey

    Deloitte’s 2020 Global Survey: Blockchain Becomes Top Strategic Priority For Majority Of Organizations

    VC Funding For Blockchain

    Top Blockchain-Based Security Solutions In 2020

  • E-Commerce
    E-commerce Website Development

    Top Tips For Your E-commerce Website Development Process

    How To Make Money With Dropshipping

    How To Make Money With Dropshipping

    Digital Marketing For Ecommerce

    The Value In Investing In Digital Marketing For Ecommerce

    16 Best eCommerce Software Platforms For Online Business

    16 Best eCommerce Software Platforms For Online Business

    ecommerce ideas

    6 Things To Consider When You are Running an E-Commerce Business

    3dcart- ecommerce Platforms

    Best e-Commerce Software Platforms For Online Business

    starting a clothing business

    8 Things You Should Know If Starting a Clothing Business

    Use Bubble Wrap

    How To Use Bubble Wrap To Ship Fragile Items

  • Lifestyle
    Hoboken apartments

    Family-Friendly Activities In The Tri-State Area

    Harry Potter Costume

    The Best Harry Potter Costumes To Bring Your Magical Fantasies To Life

    fun things to do on birthday

    10 Amazing Things You Must Do On Your Birthday

    Better Hair Quality

    Women Need A Better Hair Quality All The Time

    Is Your Office Job Killing You Slowly

    Is Your Office Job Killing You Slowly?

    Healthy Work-Life Balance

    Top Tips To Maintain A Healthy Work-Life Balance

    arbie Sole Tattoo

    Barbie Sole Tattoo Trends Blowing Up On Instagram

    Dumbest Fashion Trends In History

    From Muslin Dresses To Corsets: 17 Dumbest Fashion Trends In History

    How to apply foundation in the best way

    How To Apply Foundation In The Best Way?

  • Inbound Marketing
    • All
    • Content Marketing
    • Email Marketing
    Grow Your Email List

    8 Actionable Ways (Tested) To Grow Your Email List In 2022

    Competitive Analysis

    A Complete Guide On Competitive Analysis For Beginners

    EDM Marketing

    How EDM Marketing Is Different From Email Marketing? Which One Is Better?

    The State of Digital Marketing in Bangkok

    The State Of Digital Marketing In Bangkok

    Meme Marketing

    Meme Marketing – Why Are Brands Smiling About It

    Better Content Marketing

    Top 14 Essential Tips For Better Content Marketing

    Email open rates

    Personalization In Email Marketing: How To Increase Email Open Rates?

    Tech Blogging: An Era Ends? Or, A New Begining!

    Blog Strategy For Sustainable Content Marketing Business

    Influencer Marketing

    How To Improve Your Content Strategy With Influencer Marketing

  • Online Marketing
    • All
    • Mobile Marketing
    • Search Engine Marketing
    • Search Engine Optimization
    • Social Media Marketing
    Knowing the SEO Basics

    Knowing The SEO Basics

    SMS Marketing Mistakes to Avoid

    SMS Marketing Mistakes To Avoid

    YouTube Marketing

    10 Ways How To Get Started With YouTube Marketing

    What To Expect from Technical SEO Services

    What To Expect from Technical SEO Services

    seo roi

    Why Should You Measure And Track Your SEO Success

    External Link

    What Is External Link, And How Does It Improve SEO?

    A Comprehensive Beginner’s Guide To Learn The Basics Of Digital Marketing

    How To Include External Links In Your Content To Boost Your SEO

    The Beginner’s Guide To Understanding Link Building And How It Can Boost Your Site’s Ranking

  • Software
    Salesforce: How Does It Work

    BigQuery To Salesforce: How Does It Work?

    Scheduling A Painless Job

    Top 10 All-In-One Automated Platforms That Make Scheduling A Painless Job

    Invalua

    Ivalua Alternatives 2022: 10 Best Spend Management Software

    Booket

    Booket Alternatives 2022: 10 Best Salon Management Software

    Recruitment Assessment Tools

    Harver Tool Alternatives 2022: 10 Best Recruitment Assessment Tools

    Wordtune

    Wordtune Alternatives 2022: 10 Great AI-Powered Writing Tools

    Eduflow

    Eduflow Alternatives 2022: 10 Best Learning Management Solutions

    Payroll process

    This Is How You Can Make The Payroll Process More Strategic And Organized

    Best HR Software

    How To Choose The Best HR Software For Your Work?

No Result
View All Result
Technology | Software Reviews | Product Reviews | Internet Marketing
No Result
View All Result
Home Tech

Accessing An SMB Share With Linux Machines

March 18, 2022
in Tech
SMB Share With Linux Machines
Share on FacebookShare on Twitter

Server Message Block (SMB) is a network resource sharking protocol based on a client-server model. While Microsoft authors the most popular Microsoft SMB protocols and Microsoft operating systems are the most common SMB servers, it is possible for Linux machines to access an SMB share. Here, we’ll take a closer look at what an SMB share is, Linux tools for accessing SMB shares, and provide an example of how to access an SMB share from a Linux machine.

What Is An SMB File Share?

An SMB file share is a shared resource clients can access on a server.

An SMB file share is most often a directory, but an SMB share can also be other resources such as a specific shared file or a printer. Sometimes, you may see the term CIFS share used interchangeably with SMB share. This is because Common Internet File System (CIFS) is often directly associated with SMB version 1 (SMBv1).

  • ℹ️ Note: For more information on the technical differences between SMBv1/CIFS, SMBv2, and SMBv3, we recommend reading SMB Most Important Features. For the purpose of this article, just note that SMBv1 is insecure and inefficient and shouldn’t be used today. Generally, if you use SMB you’ll want to use SMBv3.0, SMBv3.02, or SMB v3.1.1 if your servers and clients support it.

SMB clients access SMB servers to gain access to the resources provided as SMB shares. A SMB server/client connection can be something as simple as two Windows 10 PCs sharing resources. Alternatively, it can be something more complex like using SMBv3 to work with clustered shared volumes and storage for virtual machines in a HyperV cluster.

Linux Tools For SMB File Shares

cifs-utils and smbclient are two popular examples of Linux tools that can be used with SMB shares.

There are a variety of graphical tools for Linux desktop users that can act as an SMB client. For example, Konqueror a web browser and file management tool for KDE desktops supports SMB. So does the popular SMB4K utility.

However, in this section, we’ll look at two lower-level tools that can provide extensibility and options for environments without a graphical user interface (GUI).

Where Samba Fits In

If you’ve done some prior research, you likely know working with SMB on Linux systems often involves Samba. But what is Samba and how does it fit in here? Samba is a software suite that enables file and print services on Linux operating systems. Many Linux SMB tools — including the two we’ll mention below — are (or were) directly part of the Samba suite.

cifs-utils for mounting SMB File shares on Linux

cifs-utils is a suite of tools used to mount SMB shares on Linux machines. This suite of tools used to be part of the Samba suite, but can now be installed independent of the Samba suite. cifs-utils is available in the repositories for many popular flavors of Linux including Ubuntu, Debian, CentOS, Fedora, OpenSUSE, and Arch Linux.

If it’s not already installed, you can usually install cifs-utils with your operating system’s package manager. For example, on Ubuntu, something like:

$ sudo apt-get install cifs-utils

Or on CentOS something to the effect of:

$ sudo yum install -y cifs-utils

smbclient acts as an ftp-like client for SMB file share access

smbclient is a part of the Samba suite of tools. With smbclient you get an interactive client that enables you to do things like list files in remote directories (ls), download (get) files, upload (put) files, and delete files (rm). If you’ve ever used command-line FTP clients, smbclient will likely feel very similar.

How to access an SMB File Share with Linux Machines

Here are some specific examples of how to use Linux to mount or access an SMB share.

Now that we’ve reviewed what smbclient and cifs-utils are, let’s take a look at some basic commands you can use to access an SMB share on the same network as your Linux machine. Note that SMB versions, configurations, file access permissions, encryption, and authentication methods can all impact how these samples work in your environment.

Using cifs-utils to mount Mounting an SMB share on a Linux machine

Once you have cifs-utils installed, you can mount an SMB share from a Windows machine to your Linux machine following a process like this:

Create a directory where you will mount the share, here we’ll create a directory at “/mnt/stovetop”
$ sudo mkdir /mnt/stovetop

Authenticate to the Windows share and mount it at the directory created in the previous step. In basic cases, you can do this with the command

$ sudo mount -t cifs -o username= ///<path/to/share>

Here, we’ll authenticate as a user named “johnny” and use the SMB share on at “\\WindowsKitchen\pepperneggs” which has two files “eggs.txt” and “peppers.txt” in it.
$ sudo mount -t cifs -o username=johnny //WindowsKitchen/pepperneggs /mnt/stovetop
Password for johnny@//WindowsKitchen/pepperneggs:
$
Now we can see the files on our Linux machine!
$ ls /mnt/stovetop/
eggs.txt peppers.txt
$
Using smbclient to access an SMB share from a Linux machine
Now, suppose we want to simply access the same share and interactively view the contents of \\WindowsKitchen\pepperneggs from our Linux machine.

Generally, the command to do this is:
$ smbclient -U \\\\\\<path\\to\\share>

Note that we need to use the extra backslash characters to escape the backslash characters in the Linux bash shell. Let’s look at a specific example using the same “\\WindowsKitchen\pepperneggs” SMB file share.

First, we’ll connect to the share:

$ smbclient -U david \\\\WindowsKitchen\\pepperneggs
Enter WORKGROUP\david’s password:
Try “help” to get a list of possible commands.
smb: \>

Now, let’s list the files we can see at the “smb: \>” prompt:
smb: \> ls
. D 0 Sun Feb 7 15:16:13 2021
.. D 0 Sun Feb 7 15:16:13 2021
eggs.txt A 41 Sun Feb 7 15:16:34 2021
peppers.txt A 14 Sun Feb 7 15:16:04 2021

243863551 blocks of size 4096. 202309870 blocks available
smb: \>

Finally, let’s download “eggs.txt” and exit back to our local Linux prompt.
smb: \> get eggs.txt
getting file \eggs.txt of size 41 as eggs.txt (1.1 KiloBytes/sec) (average 1.1 KiloBytes/sec)
smb: \> exit
$ ls
eggs.txt
$

Success! We’ve downloaded the file from our Windows SMB file share to our Linux machine!

Using curl to access a legacy SMBv1 file share

You may have heard curl — the popular Linux tool for all sorts of file transfers and network connections — supports SMB. This is true to an extent, but unfortunately it is only SMBv1. An generic command to download a file using curl and SMBv1 is:

$ curl -u “” smb:///<path/to/shared/file> -o <path/to/local/file>

Since SMBv1 is usually disabled on production systems, you’re likely to see an error like this if you try:

$ curl -u “johnny” smb://WindowsKitchen/pepperneggs/eggs.txt -o eggs.txt
Enter host password for user ‘johnny’:
$

On an SMB file share with SMBv1 enabled (which we do NOT recommend!) the same command will succeed.
$ curl -u “johnny” smb://WindowsKitchen/pepperneggs/eggs.txt -o eggs.txt
Enter host password for user ‘johnny’:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 41 100 41 0 0 3153 0 –:–:– –:–:– –:–:– 3416
$ ls
eggs.txt
$

Want to learn more? Contact the SMB file share experts!

While command-line tools and graphical utilities are useful for basic use cases, getting SMB shares right at scale can be difficult. At Visuality Systems, we’ve focused on SMB/CIFS solutions for over 20 years. Our products, like the JNQ Java SMB client and YNQ embedded SMB server/client software, are trusted by industry leaders in the cybersecurity, banking, aerospace, medical, and embedded systems markets and beyond. If you need help with a complex SMB application, contact us today!

Tags: SMB Share With Linux Machines
Previous Post

Don’t Go Looking For Ghosts Without These 9 Gadgets

Next Post

Understand The Choice Of Window Decals For Both Business And Personal Usage

Related Posts

Data Literate Workforce
Tech

Significant Advantages Of A Data Literate Workforce

June 25, 2022
What Is Data Literacy
Tech

What Is Data Literacy And Why Is It essential For Every Business?

June 22, 2022
Full Stack Development
Tech

7 Tools And Technologies For Full Stack Development

May 24, 2022
Salesforce Export Data
Tech

Salesforce Export Data: Hevo’s Guide For Beginners

May 24, 2022
Cloud-based CRM Software
Tech

What Is A Cloud-based CRM Software

April 21, 2022
Logistics Technology
Corporate

4 Benefits Of Incorporating Logistics Technology For Companies

March 29, 2022
Surge Protectors
Tech

Surge Protectors And How They Work

June 25, 2022
Recruitment Assessment Tools
Software

Harver Tool Alternatives 2022: 10 Best Recruitment Assessment Tools

March 18, 2022
Wordtune
Software

Wordtune Alternatives 2022: 10 Great AI-Powered Writing Tools

May 31, 2022
Next Post
Window Decals

Understand The Choice Of Window Decals For Both Business And Personal Usage

Recent Posts

Data Literate Workforce

Significant Advantages Of A Data Literate Workforce

June 25, 2022
Data Governance

What Exactly Is Data Governance, And Why Is It Important?

June 25, 2022
Data Literacy

Data Literacy: How It Can Be Help Your Organization?

June 24, 2022
Data Literacy

Data Literacy: What It Is And Why It Is Essential?

June 24, 2022
Data Governance Definitions And Process Flow

Data Governance: Definitions And Process Flow

June 22, 2022

Get Updates

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Loading

Disclosure

We sometimes use affiliate links in our content. This won’t cost you anything but it helps us to offset the costs of paying our writing team. Thanks for your support!

About Witszen

Witszen-logo

Follow Us

Useful Links

  • Home
  • Affiliate Disclosure
  • Contact Us

Browse by Category

Get Updates

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Loading
  • Home
  • Affiliate Disclosure
  • Contact Us

© 2022 Witszen

No Result
View All Result
  • Home
  • Tech
  • Fintech
  • Blockchain
  • E-Commerce
  • Lifestyle
  • Inbound Marketing
  • Online Marketing
  • Software

© 2022 Witszen