windows创建cifs共享目录,并在linux上挂载

1、windows上操作

cmd下执行net share 共享名=共享目录绝对路径

举例:net share 222=C:\Users\Administrator\Desktop\222

2、目录属性中设置共享权限

3、linux下挂载

 mount -t cifs -o username="administrator",password="123456" //192.168.1.212/222 /mnt

 

posted on 2024-06-07 19:20  狄成  阅读(8)  评论(0编辑  收藏  举报