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

相关推荐
初学者_xuan几秒前
零基础快速了解掌握Linux防火墙-Iptables
linux·服务器·防火墙·linux新手小白
HetFrame20 分钟前
John the Ripper jumbo + HashCat 破解压缩密码 ubuntu amd GPU
linux·ubuntu·amd·密码破解·john·压缩密码·hashcat
百锦再1 小时前
在 CentOS 系统上实现定时执行 Python 邮件发送任务
java·linux·开发语言·人工智能·python·centos·pygame
最小的帆也能远航2 小时前
2018年下半年 系统架构设计师 综合知识
linux·运维·服务器
疯子@1232 小时前
nacos1.3.2 ARM 版容器镜像制作
java·linux·docker·容器
Empty_7772 小时前
Linux防火墙-Iptables
linux·运维·服务器
十年编程老舅2 小时前
‌C++左值与右值:从基础概念到核心应用‌
linux·c++·右值引用·c++17·c++左值·c++右值·左值引用
飘忽不定的bug3 小时前
Ascend310B重构驱动run包
linux·ascend310
saynaihe3 小时前
关于Ubuntu的 update造成的内核升级
linux·运维·服务器·ubuntu·devops
27^×5 小时前
Linux 常用命令速查手册:从入门到实战的高频指令整理
java·大数据·linux