我使用服务帐户安装cygwin和sshd服务。在服务帐户密码更改之前,它工作正常。现在,sshd服务还没有出现。
$ net start sshd
System error 1069 has occurred.
The service did not start due to a logon failure.
有人可以帮助并分享修复它的步骤。
答案 0 :(得分:0)
可能需要重置所需的权限。 为此,我使用以下脚本:
$ cat bin/enable-cyg-server.sh
#!/bin/bash
# see
# /usr/share/csih/cygwin-service-installation-helper.sh
#
editrights -u cyg_server -a SeAssignPrimaryTokenPrivilege
editrights -u cyg_server -a SeCreateTokenPrivilege
editrights -u cyg_server -a SeTcbPrivilege
editrights -u cyg_server -a SeServiceLogonRight
editrights -u cyg_server -a SeIncreaseQuotaPrivilege
editrights -u sshd -a SeAssignPrimaryTokenPrivilege
editrights -u sshd -a SeCreateTokenPrivilege
editrights -u sshd -a SeTcbPrivilege
editrights -u sshd -a SeServiceLogonRight
editrights -u sshd -a SeIncreaseQuotaPrivilege