mount.cifs 不支持“多用户”?

mount.cifs 不支持“多用户”?

我打算对 mount.cifs 使用“多用户”选项,但 /var/log/messages 报告:

kernel:CIFS: unknown mount option multiuser
  • 内核是2.6.18-433
  • mount.cifs为1.12RH

我找不到有关 mount.cifs 版本支持多用户的信息。我猜 RHEL 5.11 及其内核对于它来说太旧了?有人能证实吗?

答案1

文档似乎multiuser是在 cifs-utils 4.7 中添加的:

Originally by Igor Druzhinin in cifs-utils 4.7 and overhauled in 5.3. Kernel support in 3.3

引用是相当间接的。似乎需要证实信息。 版本控制可能表示相同4.7man添加页面的位置:

manpage: add mount.cifs manpage entry for "multiuser" option
Jeff Layton [Fri, 8 Oct 2010 14:11:58 -0500 (15:11 -0400)]
manpage: add mount.cifs manpage entry for "multiuser" option

Signed-off-by: Jeff Layton <[email protected]>

深入研究参数解析器更具挑战性,因为multiuser它不存在于源代码中,因此其他源文件中没有找到证实的信息。

另一方面,这个网页谈论multiuser在 CentOS 7 上使用,并说:

When a Samba share is mounted, the mount credentials determine the access
permissions on themount point by default. The new multiuser mount option
separates the mount credentials from the credentials used to determine file
access for each user. In CentOS/RHEL 7, this can be used with sec=ntlmssp
authentication (contrary to the mount.cifs(8) man page).

http://rpm.pbone.net显示 cifs-utils 4.5 - 4.6 是 RHEL 5 的本机版本,因此如果它不起作用也不足为奇,但是,也根据http://rpm.pbone.netcifs-utils 5.9 是为 RHEL 5 构建的(由另一家供应商),因此如果有人想偏离发行版提供的软件包,也许还有一些希望。

如上所述,该"contrary to the mount.cifs(8) man page"评论看起来有点像危险信号sec=ntlmssp。你multiuser在其他地方使用成功了吗?

你具体尝试过什么?请给出实际例子。

相关内容