将ubuntu下文件夹挂载到windows下

1、打开 sudo vi /etc/samba/smb.conf文件,在最底部添加下面内容,根据自己账号和目录进行修改

lis

comment = Shared Folder with username and password

path = /home/lis

public = yes

writable = yes

valid users = lis

write list = lis

read list = lis

create mask = 0777

directory mask = 0777

create mode = 0777

directory mode = 0777

#force user = @TYFan

#force group = @TYFan

available = yes

browseable = yes

#guest ok = yes

#read only = no

2、sudo smbpasswd -a lis //设置密码

3、sudo smbpasswd -e lis //使能用户

4、sudo systemctl restart smbd

5、在windows下添加一个网络位置,输入ip\文件夹,输入账号密码

相关推荐
宇晨T2 小时前
BurpSuite实战:WackoPicko敏感目录探测
linux·运维·服务器
月巴月巴白勺合鸟月半3 小时前
在Linux下开发桌面程序
linux·运维·服务器
zh路西法3 小时前
【tmux入门】终端分屏、SSH远程守护与一键启动脚本
linux·运维·ssh·bash
qq_163135753 小时前
Linux 【03-pwd命令超详细教程】
linux
学途路漫漫3 小时前
Ubuntu 24.04 国内网络环境全面优化指南
linux·网络·ubuntu
c238563 小时前
GDB 进程概念详解(下篇)—— 多进程与进阶调试能力
linux·服务器·数据库
RisunJan3 小时前
Linux命令-php(PHP语言的命令行接口)
linux·php
A_humble_scholar3 小时前
Linux(八) 进程内存全景:环境变量、main 函数参数与虚拟地址空间全链路深度解析
linux·运维·服务器
longforus3 小时前
linux上播放音乐的终极解决方案
linux·音频·折腾
xcLeigh3 小时前
鸿蒙PC平台 Shotwell 照片管理器适配实战:从 Linux GNOME 到 鸿蒙PC 的 Electron 迁移
linux·electron·harmonyos·鸿蒙·shotwell·照片管理器