ssh-host-config 脚本在删除用户帐户 cyg_server 后仍会找到该帐户

ssh-host-config 脚本在删除用户帐户 cyg_server 后仍会找到该帐户

我删除了 sshd 服务并删除了脚本创建的特权用户帐户。现在我想重新安装 sshd,但在使用 ssh-host-config 脚本时遇到了问题。

它仍然找到用户“cyg_server”并想使用它来安装 sshd,但该帐户不存在,因为它已被删除。

*** Warning: cyg_server is in /etc/passwd, but the local
*** Warning: machine's SAM does not know about cyg_server.
*** Warning: Perhaps cyg_server is a pre-existing domain account.
*** Warning: Continuing, but check if this is ok.
*** Info: You appear to be running Windows XP 64bit, Windows 2003 Server,
*** Info: or later.  On these systems, it's not possible to use the LocalSystem
*** Info: account for services that can change the user id without an
*** Info: explicit password (such as passwordless logins [e.g. public key
*** Info: authentication] via sshd).

*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless a similar account
*** Info: already exists). This account is then used to run these special
*** Info: servers.

*** Info: Note that creating a new user requires that the current account
*** Info: have Administrator privileges itself.

*** Info: The following privileged accounts were found: 'cyg_server' .

*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Do you want to use a different name? (yes/no)

我的系统是 Windows 7 Ultimate,带有 Cygwin 和 openSSH。

问:我应该怎么做,让脚本再次创建特权用户“cyg_server”?

答案1

我找到了解决这个问题的方法,从 passwd 文件中删除用户“cyg_server”和“sshd”,我认为是 /etc/passwd。

相关内容