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 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: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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