www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/29/04:07:22

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 29 Mar 2012 10:06:30 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Giving interact with desktop permission to cyg_server
Message-ID: <20120329080630.GA30721@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <jl0fqv$1ht$1 AT dough DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <jl0fqv$1ht$1@dough.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mar 28 19:02, Andrew DeFaria wrote:
> I've set up ssh on some Windows 2003 and 2008 servers. These servers
> are intended to be used to build software and the like driven by
> using Cygwin's OpenSSH. Largely it works well, however...
> 
> One process that fails is a Perl process that opens an Excel
> spreadsheet using OLE. Note that it does not actually open a window
> or at least not a visible window, but rather it reads data out of
> the Excel spreadsheet. Excel does run in the background.
> 
> So, when we ssh into one of these servers and attempt to run this
> Perl process the open of the Excel spreadsheet fails. I suspect the
> problem is that even though it doesn't show an open window it does
> interact with the desktop (seems dumb to me). So I'd like to bestow
> interact with desktop right to the sshd service. You can do that if
> you use a Local System account but Cygwin requires the setting up of
> another user, cyg_server, to have sshd run as in order for ssh to
> work properly. How then do I bestow on the cyg_server user the right
> to interact with the desktop?
> 
> I see this - http://sourceware.org/ml/cygwin/2010-04/msg00728.html -
> in which Larry says "MS removed that feature in Vista so...". Does
> this mean I'm hosed? There still seems to be an Interact with
> Desktop toggle for Local System...

For some mystical reason, Microsoft didn't remove this checkbox, but
other than that, yes, you're hosed starting with Vista/2008.

The workaround suggested in all Microsoft docs is to split the job
into two processes, one started as service, the other started on
the local desktop, and then to control the desktop process from the
service process via some means of IPC.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019