惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
D
Docker
N
Netflix TechBlog - Medium
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
L
LangChain Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
博客园_首页
量子位
罗磊的独立博客
Blog — PlanetScale
Blog — PlanetScale
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
宝玉的分享
宝玉的分享
Apple Machine Learning Research
Apple Machine Learning Research
D
DataBreaches.Net
I
InfoQ
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
H
Help Net Security
V
V2EX

博客园 - 斌言

Claude Code + deepseek在Windows环境上的搭建教程 docker部署.NET6并挂载目录 unable to access 'https://github.com/langgenius/dify.git/': Failed to connect to github.com port 443 after 21111 ms: Could not connect to server .NET6 MVC 无刷新上传文件 docker快速搭建部署mqtt CentOS7.9安装Docker centos7.9 安装 openGauss 5.0.0 CentOS 7 yum安装MongoDB CentOS 7.4安装.NET6 react native SectionList组件实现多选 react-native-vector-icons 安装 apk文件查看指纹证书方法 server2008 安装mongodb supervisor 安装及基本使用 WinForms 嵌入 Web服务 ASP.NET Core http请求内容过大, IIS服务器 返回 Request Too Long 解决方案 ASP.NET Core MVC中调用Json()时默认使用Newtonsoft.Json返回数据 react native android9 axios network error .NET Core3.1升级.NET5 oracle连接报错
ubuntu安装smaba
斌言 · 2024-10-30 · via 博客园 - 斌言

1、更新软件包列表

2、安装Samba

3、一旦安装完成,您可以编辑Samba配置文件

sudo nano /etc/samba/smb.conf

4、在此文件中,您可以设置共享目录和权限。例如,添加一个简单的共享

[share]
   comment = Samba on Ubuntu
   path = /media/usb/share
   read only = no
   browsable = yes
   valid users = root
   available = yes
   writable = yes
   create mask = 0777
   directory mask = 0777

   [share] 是共享的名字,客户端在网络上看到的名字。

   path 是想要共享的目录路径。

   browseable 让共享目录在网络上可见。

   writable 允许对共享目录进行写操作。

   guest ok 设为no以防止访客访问。

   read only 设为no表示目录是可读写的。

   create mask 和 directory mask 设定了文件和目录的权限。

   valid users 限制哪些用户可以访问此共享。

5、重启Samba服务以应用配置更改

sudo systemctl restart smbd

6、如果您使用用户登录,则需要创建一个Samba用户并设置密码

sudo smbpasswd -a username

7、确保您的防火墙允许Samba通信

其它部分

   小米摄像机NAS网络存储设置,有些是不支持高版本的协议,修改后并重启smb服务。

   1、修改 vim /etc/samba/smb.conf 在[global]部分添加或修改min protocol = NT1