Linuxmount命令挂载Windows共享文件夹

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Linuxmount命令挂载Windows共享文件夹在Linux下使用mount命令挂载Windows上的共享文件夹。本经验使用RedhatLinux6.5和windows2012作为实践平台。工具/原料Windows操作系统上建立共享文件夹Linux操作系统。方法/步骤mount-tcifcwindows共享文件夹Linux/mnt路径i.e.mount-tcifs//16.187.190.60/test/mnt/Linux会要求输入访问Windows共享文件夹上的密码。注意:Linux中提示:Unabletofindsuitableaddress.说明远程共享文件夹路径不存在。请仔细检查,并更正目录路径。mount-tcifcwindows共享文件夹Linux/mnt路径i.e.mount-tcifs//16.187.190.50/test/mnt/注意:Linux中提示:mounterror(13):PermissiondeniedRefertothemount.cifs(8)manualpage(e.g.manmount.cifs)解决方案:将访问Windows共享目录的用户名和密码直接加入到命令中。mount-tcifs-ousername=WindowsLogin,password=passwordinWindows//16.187.190.50/test/mnt/注意:该命令中,username为windows上的用户;password为window用户对应的密码步骤3的命令也可以使用以下方式实现:mount.cifs-ousername=Administrator,password=PasswordForWindows//16.187.190.50/test/mnt/通过步骤3和步骤4可以成功将windows共享文件夹挂载在/mnt目录下。不过由于mount命令只能由root权限用户使用。其挂载文件夹的默认owner和group都为root,并且不能通过chmod命令更改权限。使用mount命令,给挂载共享文件夹指定owner和group.mount.cifs-ousername=Administrator,password=PasswordForWindows,uid=Mysa,gid=Mysa//16.187.190.50/test/mnt/检查/mnt/中文件夹的owner和group。更改文件夹权限。给mount共享文件夹所在组的写权限。mount.cifs-ousername=Administrator,password=PasswordForWindows,Mysa,gid=Mysa,dir_mode=0777//16.187.190.50/test/mnt/

1 / 3
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功