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

相关推荐
网硕互联的小客服2 小时前
Linux服务器磁盘应该如何合理分区?
linux·运维·服务器
贵沫末3 小时前
Ubuntu——常用软件安装
linux·运维·ubuntu
Doraemomo4 小时前
Linux内核驱动开发——中断与定时器
linux·运维·驱动开发
2301_808414384 小时前
Linux中动静态库的理解
linux·运维·服务器
M78佐菲5 小时前
ARM学习笔记(11)
linux·arm开发·笔记·嵌入式硬件·学习
M78佐菲5 小时前
ARM学习笔记(10)
linux·arm开发·笔记·嵌入式硬件·学习
半仙白桑5 小时前
内核篇第十五讲:system-V共享内存
linux·共享内存·shmget·shmat·shmdt·shmctl
一条破秋裤6 小时前
Linux 线程创建:pthread_create 与基本回收
java·linux·运维
阿钱真强道7 小时前
15 嵌入式操作系统 | 库的下载、编译、安装与验证(libubox / ubus / uci)
ubuntu·cmake·uci·ubus·libubox
IvorySQL7 小时前
PostgreSQL 日报 |RLS 机密性绕过漏洞(9 月 27 日)
数据库·postgresql