Linux mount 命令挂载 Windows 共享文件夹

 时间:2024-10-15 02:02:47

1、mount -t cifc 争犸禀淫"windows共享文件夹" "Linux /mnt路径"i.e. mount -t cifs //16.187.190.60/test /mnt/Linux 会要求输入访问Windows 共享文件夹上的密码。注意:Linux中提示:Unable to find suitable address.说明远程共享文件夹路径不存在。请仔细检查,并更正目录路径。

Linux mount 命令挂载 Windows 共享文件夹

2、mount -t cifc 争犸禀淫"windows共享文件夹" "Linux /mnt路径"i.e. mount -t cifs //16.187.190.50/test /mnt/注意:Linux中提示:mount error(13): Permission deniedRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)解决方案:将访问Windows共享目录的用户名和密码直接加入到命令中。

Linux mount 命令挂载 Windows 共享文件夹

3、mount -t cifs -o username=WindowsLogin,password="passwordinWindows"//16.187.190.50/test /mnt/注意:该命令中,username为windows上的用户;password为window用户对应的密码

Linux mount 命令挂载 Windows 共享文件夹

4、步骤3的命令也可以使用以下方式实现:mount.cifs -o username="Administrator",password="PasswordForWindows" //16.187.190.50/test /mnt/

Linux mount 命令挂载 Windows 共享文件夹

5、通过步骤3和步骤4可以成功将windows共享文件夹挂载在/mnt目录下。不过由于mount命令只能由root权限用户使用。其挂载文件夹的默认owner和group都为root,并且不能通过chmod命令更改权限。

Linux mount 命令挂载 Windows 共享文件夹

6、使用mount命令,给挂载共享文件夹指定owner和group.mount.cifs -o username="Administrator",password="PasswordForWindows",uid=Mysa,gid=Mysa //16.187.190.50/test /mnt/

Linux mount 命令挂载 Windows 共享文件夹

7、检查/mnt/中文件夹的owner和group。

Linux mount 命令挂载 Windows 共享文件夹

8、更改文件夹黑具跑秀权限。给mount共享文件夹所在组的写权限。mount.cifs -o username="Administrator",password租涫疼迟="PasswordForWindows",Mysa,gid=Mysa,dir_mode=0777 //16.187.190.50/test /mnt/

Linux mount 命令挂载 Windows 共享文件夹
Linux mount 命令挂载 Windows 共享文件夹
  • jquery是如何通过class来获取元素的?
  • Secure CRT 自动连接中断解决办法
  • vbs怎么输出提示框?
  • 深信服超融合HCI中linux安装性能优化工具无网卡
  • Windows10系统添加电源计划的方法
  • 热门搜索
    我爱红领巾手抄报 科技改变生活手抄报 环境手抄报内容 快乐读书手抄报图片 手抄报的边框 感恩妈妈手抄报内容 校园手抄报图片 安全出行手抄报 国庆节 手抄报 弟子规手抄报图片