Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

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

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


vinschen at redhat

Jun 5, 2012, 5:04 AM

Post #1 of 2 (254 views)
Permalink
[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
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


dtucker at zip

Jun 22, 2012, 5:03 AM

Post #2 of 2 (221 views)
Permalink
Re: [patch/cygwin]: Explicitely add user right to start service [In reply to]

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.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.