Corinna Vinschen
2012-Jun-05 12:04 UTC
[patch/cygwin]: Explicitely add user right to start service
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
Darren Tucker
2012-Jun-22 12:03 UTC
[patch/cygwin]: Explicitely add user right to start service
On Tue, Jun 05, 2012 at 02:04:31PM +0200, Corinna Vinschen wrote:> 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.Applied, thanks. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Seemingly Similar Threads
- [PATCH/cygwin]: Revised sshh-host-config script
- [PATCH] contrib/cygwin/ssh-host-config: Improve support for automated updates
- [PATCH] Cygwin: rel 3.0 drops requirement for privileged non-SYSTEM account
- [patch/cygwin] contrib/cygwin/ssh-host-config
- [PATCH] Update Cygwin service installer script for new Cygwin release