[patch/cygwin]: Explicitely add user right to start service
Corinna Vinschen
vinschen at redhat.com
Tue Jun 5 22:04:31 EST 2012
Hi,
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
service.
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}"
then
+ /usr/bin/editrights -u "${run_service_as}" -a SeServiceLogonRight
echo
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"
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
More information about the openssh-unix-dev
mailing list