ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

Use Samba to share files in Linux and Windows

2022-02-03 18:02:14  阅读:187  来源: 互联网

标签:files Use Samba Windows sudo share Linux yes


Use Samba to share files in Linux and Windows

1、Introduction

Samba is a free software for linking the UNIX series of operating systems with the Microsoft Windows operating system's SMB / CIFS (Server Message Block / Common Internet File System) network protocol. The third edition not only visits and shares SMB folders and printers, which can also be integrated into Windows Server domains, playing a domain control station (Domain Controller) and joining Active Directory members. In short, this software is a bridge between Windows and UNIX series operating systems, so that the resources are interoperable.

2、Install Samba Server on Linux(Ubuntu)

sudo apt -y update
sudo apt -y install samba

3、 Configure Samba server Share on Ubuntu

sudo mkdir -p /home/share
# Access to All without Authentication
sudo chmod 777 /home/share

Samba uses configuration file in /etc/samba/smb.conf. If you change this configuration file, the changes do not take effect until you restart the Samba daemon

sudo vim /etc/samba/smb.conf
[global]

# Configure correct UTP
  unix charset = UTF-8
# Change this to the workgroup/NT-domain name your Samba server will be part of
   workgroup = WORKGROUP
   bind interfaces only = yes

# Set share configuration at the end
[Docs]
   path = /home/share
   writable = yes
   guest ok = yes
   guest only = yes
   create mode = 0777
   directory mode = 0777

4、Test and Config Samba Clinet

To access a Samba share on the Linux system ,you need to install and configure Samba client .

sudo apt -y install smbclient cifs-utils
# test 
smbclient //sambaserver/share -U sambausername

Open up File Explorer and then right-click on This PC (in the left pane). From the resulting context menu, select Add a network location (Figure A)

Refer to

install-and-configure-samba-server-share-on-ubuntu

How to connect to Linux Samba shares from Windows 10

Mounting and mapping shares between Windows and Linux with Samba

标签:files,Use,Samba,Windows,sudo,share,Linux,yes
来源: https://www.cnblogs.com/gxhao/p/15861752.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有