标签: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
5、 Use Windows link Samba shared folders
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
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. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。