delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/01/06:26:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4A4B39CE.7060607@renona-studios.org>
Date: Wed, 01 Jul 2009 12:26:22 +0200
From: Andrwe Lord Weber <lord-weber-andrwe AT renona-studios DOT org>
User-Agent: Spicebird/0.7.1 (Windows; 2009031117)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: how to windows login from shell
References: <4A4AF0C2 DOT 8020405 AT renona-studios DOT org> <20090701093801 DOT GW30864 AT calimero DOT vinschen DOT de>
In-Reply-To: <20090701093801.GW30864@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Corinna Vinschen wrote:
> 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
Thank you Corinna,
it seems exactly to be what I'm looking for.
I'll test it.


Andrwe

--
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

- Raw text -


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