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

相关推荐
普马萨特1 分钟前
GPS、WiFi、基站定位:为什么在 Agent 时代不仅不受影响,反而更重要
linux·运维·服务器
予枫的编程笔记26 分钟前
【Linux入门篇】Ubuntu和CentOS包管理不一样?apt与yum对比实操,看完再也不混淆
linux·人工智能·ubuntu·centos·linux包管理·linux新手教程·rpm离线安装
RisunJan31 分钟前
Linux命令-lpr(从命令行提交文件到打印机打印)
linux·运维·服务器
历程里程碑32 分钟前
Linux 库
java·linux·运维·服务器·数据结构·c++·算法
Sheep Shaun34 分钟前
如何让一个进程诞生、工作、终止并等待回收?——探索Linux进程控制与Shell的诞生
linux·服务器·数据结构·c++·算法·shell·进程控制
codingWhat36 分钟前
Linux 入门指南
linux
Y1rong1 小时前
linux之信号量
linux
wdfk_prog1 小时前
[Linux]学习笔记系列 -- [drivers][tty]sysrq
linux·笔记·学习
c++逐梦人1 小时前
Linux基础IO
linux·操作系统·io
blueSatchel1 小时前
U-Boot载入到DDR过程的代码分析
linux·开发语言·u-boot