Cygwin:ssh-host-config 失败,'local group does not exist'



我正在尝试在Windows 7下的VM上安装Hbase。

按照说明进行操作,一切都很好,直到我做ssh-host-config

我看到以下内容:

>Should privilege separation be used? Yes
>new local account ‘sshd’? Yes
>Do you want to install sshd as a service? Yes
>Enter the value of CYGWIN for the daemon?[] just <enter>
>Do you want to use a different name? No
>create new privileged user account ‘cyg_server’ account? Yes
>Please enter the password: 
>Reenter: 
>User has been created
>System error 1376 has occurred
>The specified local group does not exist.
>Adding user cyg_server to local group root failed
>Please add cyg_server to local group before

您可以使用以下命令检查该蹩脚错误的含义:

$ NET HELPMSG 1376
The specified local group does not exist.

问题似乎是脚本没有为新用户帐户提供"管理员"组成员身份。您可以使用以下内容进行检查:从普通的Windows命令外壳(CMD)net user cyg_server。确保该行显示:

Local Group Memberships  *Administrators  *Users

如果没有,则需要打开 Windows 控制面板并导航到"用户帐户"。在那里,您会找到一个名为"特权服务器"的新帐户,即cyg_server帐户。您需要将其帐户类型从 Standard 更改为 Administrator .

现在重新启动sshd并检查它是否正在运行:

$ cygrunsrv.exe --query sshd
Service             : sshd
Display name        : CYGWIN sshd
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/sshd -D

但是,这可能不是故事的结束,因为如果没有分配密码,则这些帐户不能用于登录。您需要创建一个具有远程登录权限的新帐户(并添加到/etc/passwd)。并且不要忘记检查帐户密码过期...

相关内容

最新更新