• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Debian

Creating Network Shares Using Samba on Debian

How VPS by How VPS
November 1, 2019
in Debian
0
0
SHARES
22
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Step 1: Installing Samba
  2. Step 2: Configuring Samba
  3. Conclusion
  4. Want to contribute?


There are times when we need to share files that must be viewable by Windows clients. Since Fuse-based systems only work on Linux, we’ll be introducing a popular piece of software, called Samba. Samba implements protocols used by Windows such as workgroups, and allows for files to be viewed and modified through Windows. You can run Samba on Linux to share files with Windows clients.

This guide will explain how to setup a network share using Samba on Debian.

Step 1: Installing Samba

Let’s begin. In order to use Samba, we need to install it. Run the following command as the root user.

apt-get install samba

Step 2: Configuring Samba

This is the difficult part – I’ll be explaining each line in the configuration that gets added. For this article, we’ll be using nano as the preferred text editor, but you can replace it with vim, or any similar text editor. Let’s get to the configuration. Open it by running these commands as root.

nano /etc/samba/smb.conf

When you scroll down in the configuration, the first option you’ll encounter is workgroup = WORKGROUP. On your Windows clients, you should have already set up a workgroup. We’ll be using workcomputers as the workgroup for this article. Edit the last part of that line and change WORKGROUP to your workgroup, or for this article, workcomputers. As we’re using nano, we’ll go to the bottom by holding the keys CTRL+W, then CTRL+V. This is where the magic happens – add these lines to the end of your configuration:

[networkShare]
comment = description of the shared folder
read only = no
path = /networkShare
guest ok = yes

Here’s an explanation of each line:

[networkShare] - You may edit the section between the brackets, but you must maintain the brackets.
comment = description - Edit the part after "comment =" to how you want to describe the share.
read only = no - If you want clients to not have the ability to manipulate files, change this to "yes".
path = /networkShare - Edit this to the folder you want to share.
guest ok = yes - For this article, we'll be keeping this easy, so don't change "yes".

After you’ve finished editing, hit CTRL+X, type Y and hit Enter. Then, we need to restart Samba:

service samba restart

The Samba setup is complete. At this point, you will start seeing the server in the Network section of My Computer on your Windows Client.

Conclusion

By setting up these shares, you’ll be able to control if files can be modified, or only the ability to copy files. They’re very easy to set up, and can be easily removed as well. You may add more shares with additional configuration blocks as described in step 2.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

Install Plesk On Debian 7 (Wheezy)

Next Post

How to Install MyBB on Debian 9

Next Post

How to Install MyBB on Debian 9

Leave a Reply Cancel reply

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

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet