[patch/cygwin]: Explicitely add user right to start service

Corinna Vinschen vinschen at redhat.com
Tue Jun 5 22:04:31 EST 2012


could somebody with checkin rights please apply the below patch to the
Cygwin service creator script?  It patches a problem when using an
existing account to start the sshd service.  In that case the script
so far doesn't make sure that the user has th right to logon as a 

Index: contrib/cygwin/ssh-host-config
RCS file: /cvs/openssh/contrib/cygwin/ssh-host-config,v
retrieving revision 1.31
diff -u -p -r1.31 ssh-host-config
--- contrib/cygwin/ssh-host-config	21 Feb 2011 10:41:32 -0000	1.31
+++ contrib/cygwin/ssh-host-config	5 Jun 2012 12:04:22 -0000
@@ -493,6 +493,7 @@ install_service() {
 			      -a "-D" -y tcpip "${cygwin_env[@]}" \
 			      -u "${run_service_as}" -w "${password}"
+	  /usr/bin/editrights -u "${run_service_as}" -a SeServiceLogonRight
 	  csih_inform "The sshd service has been installed under the '${run_service_as}'"
 	  csih_inform "account.  To start the service now, call \`net start sshd' or"


Corinna Vinschen
Cygwin Project Co-Leader
Red Hat

More information about the openssh-unix-dev mailing list