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 !!!

相关推荐
艾莉丝努力练剑36 分钟前
OpenCode AI 编程:Ubuntu 24.04 环境安装与使用指南
linux·服务器·网络·人工智能·tcp/ip·ubuntu
崇山峻岭之间1 小时前
Keil5输出hex转换为bin的设置
linux·运维·服务器
IvorySQL1 小时前
PG 技术日报|2026-07-04
数据库·人工智能·postgresql·开源
IvorySQL2 小时前
IvorySQL HTAP 实时湖仓接入引擎
数据库·postgresql·开源·htap·ivorysql
谷雪_6582 小时前
Linux 网络命名空间:从内核原理到企业级容器网络架构全景实战
linux·网络·架构
Tian_Hang2 小时前
Eclipse Ditto 的权限策略
java·服务器·前端·网络·ide·ubuntu·eclipse
IvorySQL2 小时前
PostgreSQL 技术日报|2026-07-05
数据库·postgresql
岳麓丹枫0012 小时前
PgBouncer使用笔记
postgresql
qq_163135752 小时前
Linux 【03- chgrp命令超详细教程】
linux
我会尽全力 乐观而坚强3 小时前
MySQL库与表的操作
linux·数据库·mysql