delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/27/08:58:57

X-Spam-Check-By: sourceware.org
Date: Wed, 27 Sep 2006 08:58:40 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Pavel Ivanoff <Pavel DOT Ivanoff AT cbossgroup DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: New windows from cygwin in ssh
In-Reply-To: <A8427120F16F674DACE8EF1128D9365F0102A5DB@MAILSRV3.int.cboss.ru>
Message-ID: <Pine.GSO.4.63.0609270849180.15013@access1.cims.nyu.edu>
References: <A8427120F16F674DACE8EF1128D9365F0102A5DB AT MAILSRV3 DOT int DOT cboss DOT ru>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Ugh, top-posting...  Reformatted.

On Wed, 27 Sep 2006, Pavel Ivanoff wrote:

> > -----Original Message-----
> > From: Igor Peshansky
> > Sent: Tuesday, September 26, 2006 4:27 PM
> > To: Pavel Ivanoff
> > Subject: RE: New windows from cygwin in ssh
> >
> > You weren't clear on exactly what you want to happen.  If you wish to
> > see the window pop up on the remote machine's desktop, you need to add
> > the "Allow service to interact with desktop" checkmark in the sshd
> > service description (or, alternatively, install it with the '-i'
> > cygrunsrv flag).
> >
> > If you want the window to be forwarded over to the local machine
> > (i.e., the one you're ssh'ing from), that is not currently possible
> > with Windows.  One thing you can try is use a tool like VNC (which you
> > can forward over ssh, too).
>
> As I understand "Allow service to interact with desktop" is exactly what
> I want. But this checkbox is active only when service los on as SYSTEM
> but my sshd logs on as me. And installing the service with '-i' option
> said to me the same: "cygrunsrv: --interactive not allowed with --user".
> Is there any solution to this problem? Or I must run service as SYSTEM
> to have this functions usable?

I'm afraid so.  It's unclear why Windows imposes this restriction, but if
your sshd is running as a non-SYSTEM user, it can't interact with the
desktop.  I was going to suggest using "cygstart", but even that
apparently doesn't work as-is.  It probably can be patched up to obtain
the current window station and ask the shell to execute the program there,
but <http://cygwin.com/acronyms/#SHTDI>.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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

- Raw text -


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