文档详情

Linuxmount命令挂载Windows共享文件夹.doc

发布:2017-05-21约1.26千字共3页下载文档
文本预览下载声明
Linux mount 命令挂载 Windows 共享文件夹 听语音 百度经验: 在Linux下使用mount命令挂载Windows 上的共享文件夹。本经验使用Redhat Linux6.5和windows2012作为实践平台。百度经验: 工具/原料 Windows操作系统上建立共享文件夹 Linux操作系统。百度经验: 方法/步骤mount -t cifc windows共享文件夹 Linux /mnt路径 i.e. mount -t cifs //0/test /mnt/ Linux 会要求输入访问Windows 共享文件夹上的密码。 注意: Linux中提示: Unable to find suitable address.? 说明远程共享文件夹路径不存在。请仔细检查,并更正目录路径。 步骤阅读mount -t cifc windows共享文件夹 Linux /mnt路径 i.e. mount -t cifs //0/test /mnt/ 注意: Linux中提示: mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) 解决方案:将访问Windows共享目录的用户名和密码直接加入到命令中。 步骤阅读 mount -t cifs -o username=WindowsLogin,password=passwordinWindows ?//0/test /mnt/ 注意:该命令中,username为windows上的用户;password为window用户对应的密码 步骤阅读步骤3的命令也可以使用以下方式实现: mount.cifs -o username=Administrator,password=PasswordForWindows //0/test /mnt/ 步骤阅读通过步骤3和步骤4可以成功将windows共享文件夹挂载在/mnt目录下。不过由于mount命令只能由root权限用户使用。其挂载文件夹的默认owner和group都为root,并且不能通过chmod命令更改权限。 步骤阅读使用mount命令,给挂载共享文件夹指定owner和group. mount.cifs -o username=Administrator,password=PasswordForWindows,uid=Mysa,gid=Mysa //0/test /mnt/ 步骤阅读检查/mnt/中文件夹的owner和group。 步骤阅读 更改文件夹权限。给mount共享文件夹所在组的写权限。 mount.cifs -o username=Administrator,password=PasswordForWindows,Mysa,gid=Mysa,dir_mode=0777 //0/test /mnt/ 步骤阅读
显示全部
相似文档