This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Elevated prompt under ssh on Windows 7
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 18 Jan 2012 14:54:23 +0100
- Subject: Re: Elevated prompt under ssh on Windows 7
- References: <jf6d07$ile$1@dough.gmane.org>
- Reply-to: 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