Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What rights a user needs to run cygwin sshd as a service on vista? A ssh-host-config creates user cyg_server with 5 rights:

$ editrights.exe -l -u cyg_server
SeAssignPrimaryTokenPrivilege
SeCreateTokenPrivilege
SeTcbPrivilege
SeServiceLogonRight
SeDenyRemoteInteractiveLogonRight

But the service failed (even after reboot, reinstall and with cygwin terminal in Administrator mode):

$ cygrunsrv.exe -S sshd
Error 1069: The service did not start due to a logon failure
share|improve this question

1 Answer 1

up vote 1 down vote accepted

You should verify that the cyg_server account has been correctly set in your "/etc/passwd" file. If you want to be sure, just launch the following command:

mkpasswd -l -c >/etc/passwd

You should also verify that your new "sshd" service has been registered and will be started by the account "cyg_server":

  • Go to the Windows services management interface (Execute --> services.msc)
  • Right-click on the sshd service and choose "Properties"
  • Verify that the account which is in charge of running the service is "cyg_server"

Perhaps is the following priviledge also necessary:

editrights -a SeIncreaseQuotaPrivilege -u cyg_server

You can also check in lusrmgr.msc that the account password is set to never expire, and that it hasn't been disabled

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.