delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Wed, 18 Jan 2012 14:54:23 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Elevated prompt under ssh on Windows 7 |
Message-ID: | <20120118135423.GB21406@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <jf6d07$ile$1 AT dough DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <jf6d07$ile$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 Jan 18 14:12, Timothy Madden wrote: > Hello > > I use ssh to connect to my cygwin machine (running on Windows 7 SP1 > 64-bit) and I would like the remote shell not to run elevated (as it > runs by default if I start it on the remote machine directly), > except for the Administator user. > > That way I can get the Unix-like behavior in which other users need > to `su` first in order to perform administrative tasks. No, that's not possible. If you start your ssh session non-elevated there's no way to call `su' and expect it to work due to the different way in which user context switches work in Windows compared to POSIX systems. The usual workaround to get a su-like behaviour is to call ssh localhost. If that again results in a non-elevated shell, you are out of luck. No admin user would be able to do any administrative task. If you want a non-privileged ssh access, use a non-admin user account. 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |