侧边栏壁纸
  • 累计撰写 85 篇文章
  • 累计创建 39 个标签
  • 累计收到 9 条评论

目 录CONTENT

文章目录

Linux挂载Wimdows SMB共享

散漫的老何
2022-09-17 / 0 评论 / 0 点赞 / 721 阅读 / 143 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2023-09-01,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

Windows 创建SMB文件共享并设置相关权限

image

挂载smb使用读写750权限

sudo mount -t cifs -o “rw,dir_mode=0750,file_mode=0750,username=用户名,password=密码” //文件共享主机名或IP/共享文件夹 /Linux操作挂载路径

] sudo mount -t cifs -o "rw,dir_mode=0750,file_mode=0750,username=administrator,password=xxxxx" //10.10.0.2/shell  /opt/shell

检查

mount

image-1663402450300

df -h

image-1663403433535

设置开机自动挂载

编辑/etc/fstab文件添加自动挂载配置

] vim /etc/fstab
//10.10.0.2/shell  /opt/shell  cifs  rw,dir_mode=0750,file_mode=0750,username=administrator,password=xxxx  0  0

image-1663403216139

0
广告 广告

评论区