Linux 和 windows 共享文件

Linux side:

#create share folder.

sudo nano /etc/samba/smb.conf

shared // please notes this is the name which shared for others

path = /home/adley/shared

available = yes

valid users = adley

read only = no

browsable = yes

public = yes

writable = yes

#add credicial

sudo smbpasswd -a adley

#restart smbd

sudo systemctl restart smbd

#check share folder if work

a. testparm

b. sudo mount -t cifs //localhost/shared /mnt/samba-test -o username=adley,password=你的Samba密码

c. sudo umount /mnt/samba-test

#windows 下 打开共享文件

  1. 确保 windows 的smb 服务开启了

  2. open the share folder \\\172.21.67.193\shared 输入 Linux 上设置的 Samba 用户名(`adley`)和密码,即可访问和读写文件。

  3. "此电脑" → 选择 **映射网络驱动器**

相关推荐
mounter6258 分钟前
突破单点限制:BPF 多跟踪点高效附加机制与新 ftrace 架构解析
linux·ebpf·linux kernel·kernel·ftrace
huainingning11 分钟前
微软windows系统官网IPV6临时地址介绍
windows·microsoft·智能路由器
刘某的Cloud12 分钟前
Galera Cluster部署 mariadb 节点down机,log sequence number恢复
linux·运维·数据库·负载均衡·mariadb·集群·高可用
小此方16 分钟前
Re:Linux系统篇(五十四)线程篇 · 七:互斥锁的底层实现原理:从硬件上下文、原子交换指令(Swap)到并发封装实战
linux·运维·驱动开发
郭涤生41 分钟前
rootfs 详解与裁剪优化记录
linux·c++·bsp
二宝哥2 小时前
CentOS 7.9 离线安装 Nginx 并配置openssl1.1.1
linux·nginx·centos
程序员老陆2 小时前
说一说FFmpeg6在Linux平台的编译
linux·运维·服务器·ffmpeg
玫幽倩2 小时前
2026黄河流域公安院校-电子物证单项赛(程序逆向分析+服务器取证)
运维·服务器·python·电子取证·逆向·程序分析·服务器取证
IT摆渡者3 小时前
VM EXSI7.0存储硬盘故障处理
大数据·linux·github
赵民勇3 小时前
systemd-cgtop命令详解
linux·运维