X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 1 Jul 2009 11:38:01 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: how to windows login from shell
Message-ID: <20090701093801.GW30864@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4A4AF0C2.8020405@renona-studios.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4A4AF0C2.8020405@renona-studios.org>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jul  1 07:14, Andrwe Lord Weber wrote:
> Hi,
>
> is there a function to login as a user from the cygwin bash-shell?
>
> The reason I'm asking is I want to connect to M$ XP using ssh public key  
> authentication.
> The connection itself is working fine but I can't use shares because of  
> missing rights.
> I figured out that the login process isn't a real Windows login if you  
> use a public key authentication so you don't have exactly the right the  
> normal user has.
> After some research I found some mails in mailing lists talking about  
> this problem but there was just the solution to use net use  
> \\computer\share /USER:user password
> to get a share but this possibility doesn't work for me.
> That is why I got the idea to start a script, program or something like  
> that after the user authenticated itself which authenticates the user to  
> Windows.
> Therefore I was hoping that cygwin already has a function to  
> authenticate a user.

Maybe Cygwin 1.7 has what you're looking for:

http://cygwin.com/1.7/cygwin-ug-net/ntsec.html#ntsec-setuid-overview


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

