This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Giving interact with desktop permission to cyg_server

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 - -
> 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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]