RHEL 7:挂载Windows CIFS共享失败

路径查找器

看起来好像是重复的问题,但在RHEL 7中不是。

由于RHEL 7在/ sbin中没有安装mount.cifs二进制文件,因此我想知道在Linux机器上挂载Windows CIF共享的其他方法。

CIF会在一段时间内挂载Windows共享,根据需要我可以将其卸载。我不希望在启动时挂载CIF共享。我的脚本应该为我执行挂载和卸载操作。

欢迎提出建议。

谢谢

哈西特·谢思(Harshit Sheth)

如果您的公司政策允许您使用,CIFS请确保已安装cifs实用程序。

# lsmod |grep cifs
cifs                  293313  3

如果没有,那么安装它

# yum install samba-client samba-common cifs-utils 

或者

# yum install cifs-utils

安装CIFS实用程序后,您应该能够找到mount.cifs命令。

要在引导时挂载,您将需要在fstab文件下添加其条目。

example:

`//10.10.*.*/folder/to-share /mountpoint cifs username=harry,password=XXXXXX,rw,user 0 0`

或者

`//10.10.*.*/folder/to-share /mountpoint cifs credentials=/root/.smbfile,rw,user 0 0`

.smbfile >添加Windows计算机凭据

username=harry
password=XXXXXX

在以上条目的帮助下,您可以相应地更改脚本。

您也可以使用 autofs

查找“ CIFS”替代链接:

在Windows 7上挂载Linux NFS共享 http://www.hackourlife.com/mount-linux-nfs-share-on-windows-7/

如何在Windows上安装UNIX到Windows迁移的NFS客户端 http://support.microsoft.com/kb/324055

Windows 7的NFS客户端(Microsoft社区) http://answers.microsoft.com/en-us/...indows-7/42aae25d-d077-4ff9-abdf-7314a589c46d

Microsoft Windows 7和Windows Server 2008 R2中用于基于UNIX的应用程序的子系统的实用工具和SDK http://www.microsoft.com/en-us/download/details.aspx?id=2391

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章