ubuntu samba share

setp 1: Install depend dev pakage

bash 复制代码
sudo apt install python3-samba samba-common
sudo apt install vim

setp 2: Add user for sambashare

bash 复制代码
sudo adduser <yourname> sambashare

setp 3: Set your sambashare password

bash 复制代码
sudo smbpasswd -a <yourname>

setp 4: Edit samba config

bash 复制代码
sudo vim /etc/samba/smb.conf

add : ( the file end )

bash 复制代码
[Share]
  path = /home/<yourname>/<your_share_folder>
  available = yes
  browseable = yes
  public = yes
  writable = yes
  valid users = <yourname>
  create mask = 0700
  directory mask = 0700
  force user = nobody
  force group = nogroup

use wq save Edit !

setp 5: Restart computer

bash 复制代码
sudo reboot 

Tips: or restart samba services !! use this common

bash 复制代码
sudo service smbd restart && service nmbd restart

setp 6: Test sambashare

Use your other computer to test sambashare!!!

Eg : system is ubuntu

bash 复制代码
smb://<your host computer of sambashare ip>/<your sambashare folder>

Done !!!

相关推荐
浩浩测试一下7 小时前
Linux 底层知识点 1
linux·运维·服务器
Escalating_xu7 小时前
【Linux 网络编程】TCP 跨平台实战:用 Windows 客户端访问 Linux 服务器
linux·服务器·网络
忆挽篱笙歌8 小时前
环境变量,本地变量
linux·运维·服务器
JANGHIGH9 小时前
基于ADE20K数据集的SETR模型训练
ubuntu
丰色木夕10 小时前
Ubuntu22.04下源码编译安装USD-Brep
c++·ubuntu·nvidia·usd-brep
吹什么轩10 小时前
linux系统复习:僵尸进程与孤儿进程
linux·运维·php
殷忆枫11 小时前
告别依赖地狱!在 Ubuntu 上用 Docker 极速部署 Home Assistant 与 MQTT,并接入 Siri 与嵌入式 C 终端
linux·ubuntu·docker
第404号工位11 小时前
手机到底有没有偷听我们?我抓包了 72 小时,抓到了真凶
linux·人工智能·架构
字节跳动开源11 小时前
ByteDance 2026 上半年 Linux 内核贡献回顾
linux·开源
小此方11 小时前
Linux网络(二十八):从NAT转换到正反向代理:图解内网通信、NAPT端口映射
linux·运维·网络