linux - Windows Server 2012 R2 NFS 身份映射 linux 客户端

标签 linux windows server identity passwd

我正在尝试将 Ubuntu 12.04 机器标识映射到 Windows 2012 R2 机器上的 NFS 共享。

我有数量有限的 Ubuntu 机器,所有机器都是同一个用户。

This:

说明如果我在下面创建一个 passwdgroup 文件,我就可以标识映射:

System32/drivers/etc

我用 passwd 这样做了,如下所示:

localhost\user:x:1000:1000

组:

localhost\UNIXuser:x:1:user

在 Windows 机器上,我创建了 UNIXuser 组,用户是其中的一员。

Windows 事件查看器 (ServicesForNFS-Server\IdentitiyMapping) 说:

A syntax error was found on line 1 when loading C:\Windows\System32\drivers\etc\passwd. The file will not be used as a mapping source.

C:\Windows\System32\drivers\etc\group will be used as a mapping source.

最佳答案

1) 在 Windows NFS 客户端上,创建本地用户 <Unix_user>

2) 编辑C:\Windows\System32\Drivers\etc\passwd
<localhost>\<Unix_user>:x:<Unix_UID>:<Unix_GID>:User Description,,,:c:\users\<Unix_user>

3) 编辑C:\Windows\System32\Drivers\etc\group
<localhost>\<Unix_group>:x:<Unix_GID>:<Unix_UID>

关于linux - Windows Server 2012 R2 NFS 身份映射 linux 客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31618768/

相关文章:

Linux sed 以通用方式替换单词

c# - 在模态对话框上显示 MessageBox 后,ALT + TAB 不起作用

c++ - 一个像素一个像素的 3d 图形程序 [通过拖动窗口更快地绘图]

javascript - 将 url 传递给模块

node.js - 通过 UI 设置 Gitlab CI/CD 环境变量

linux - 我的小 asm 程序有段错误

linux - 共享内存 : How does shmget()/shared memory work?

linux - 如何在不显示该目录的情况下使用特定目录的文件路径自动完成 bash 命令行?

python - 将TensorFlow Faster R-CNN卡住图转换为Intel OpenVINO框架时发生内部错误

linux - Rundeck 身份验证错误甚至添加了正确的 ssh_用户名和密码