1. Window下创建用户XXX(作用:Linux mount时需要提供用户和密码)

Linux访问Window共享文件夹的配置步骤

 

2. Window下共享文件夹给XXX用户,并根据实际需要设置读取/写入权限

Linux访问Window共享文件夹的配置步骤

3. Linux下创建挂载的目录

>cd /home/XXX

>mkdir test

4. Linux下使用root权限挂载

mount -t cifs -o file_mode=0777,dir_mode=0777,uid=500,gid=500,username=XXX,password=XXX //192.168.2.123/test /home/XXX/test

5. 查看各挂载点状态

mount -a 执行fstab中的文件系统的挂载

6. Linux下卸载

umount /home/XXX/test

如果出现一下错误提示:unmount error 16 = Device or resource busy

    Refer to the umount.cifs(8) manua

则可以使用umount -l /home/XXX/test卸载

 

相关文章:

  • 2022-01-09
  • 2021-09-11
  • 2021-12-06
  • 2022-02-27
  • 2021-05-20
  • 2021-06-26
  • 2022-12-23
  • 2021-07-08
猜你喜欢
  • 2021-11-25
  • 2022-01-27
  • 2022-12-23
  • 2021-11-16
  • 2021-11-30
  • 2022-01-29
  • 2022-02-01
相关资源
相似解决方案