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. "此电脑" → 选择 \*\*映射网络驱动器\*\*

相关推荐
zzzsde2 小时前
【Linux】进程(3):进程状态
linux·运维·服务器
良逍Ai出海2 小时前
在 Windows & macOS 上安装 Claude Code,并使用第三方 Key 的完整教程
windows·macos
Mr_liu_6662 小时前
ubuntu:beyond compare 4 This license key has been revoked——————转载拼接
linux·运维·ubuntu
404Clukay2 小时前
Windows Server 配置 Let‘s Encrypt 免费 HTTPS 证书(WACS + Nginx 自动化方案)
windows·nginx·https
无聊的小坏坏2 小时前
补充:使用 /etc/cron.d 管理定时任务
linux·定时任务
热爱生活的五柒2 小时前
linux/mac/wsl如何使用claude code,并配置免费的硅基流动API?(官方的需要付费订阅)
linux·运维·macos
❀搜不到2 小时前
windows 使用MinGW安装Nlopt
windows
wefg12 小时前
【Linux】动静态库
linux·运维·restful
Y1rong2 小时前
linux之线程池
linux