Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Delivered-To: corinna-cygwin AT cygwin DOT com From: pmarek AT users DOT sourceforge DOT net Reply-To: pmarek AT users DOT sourceforge DOT net To: corinna-cygwin AT cygwin DOT com, Pierre DOT Humblet AT ieee DOT org Subject: Re: Difference between login and runas? Date: Mon, 7 Jul 2003 07:02:56 +0200 User-Agent: KMail/1.5.2 Cc: Igor Pechtchanski , cygwin AT cygwin DOT com References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307070702.56115.pmarek@users.sourceforge.net> X-DCC-ZID-Univie-Metrics: mx1 4251; Body=0 Fuz1=0 Fuz2=0 Hello Corinna, hello Pierre, I was told that you have a utility which prints a full authentication token. Is this available anywhere, possibly already as binary??? Thank you very much!! > > I'm using cygwin 1.3.22 and need some help. > > > > I'm trying to change the user (coming from the localsystem account) and > > tried several ways. > > > > - the "runas" utility (windows xp) does prompt me for a password. > > redirection via eg. "echo password| runas /user:guest cmd.exe" shows that > > runas gets the password, but tells always that it is wrong. (yes I know, > > that echo sends the spaces between the last character and | - that's why > > I have none). I even tried using a 'perl -e "print 'password'" | runas > > ...' - but that didn't work either. > > > > - su (cygwin version) doesn't work - has not been rewritten for windows > > authentication. > > > > - su (utility from microsoft, IIRC resourcekit or similar) works, but > > needs the password. > > > > - login works beautifully, I do not even need the password. But: there > > seems to be a difference between login and su(ms-version) or runas. > > Trying to run the microsoft office setup program shows problems with > > login, which are not there with runas or su. > > > > I checked that > > - the correct registry hive was available as HKEY_CURRENT_USER, > > - the user and group memberships were correctly set, > > - I even purged the environment and "imported" (via a set > file.bat, > > text-editing, and "call"ing this file.bat) an "original" from this user. > > > > But there is still some difference, which I don't find. > > > > Can somebody help me please?? Any ideas welcome. > > IIRC, there is a difference between the token created by passwordless > authentication, and the one created when a password is supplied. The > passwordless token is not "fully trusted" by some other Windows services, > especially remote network shares. > > If you really want to dig deep, Corinna Vinschen and Pierre Humblet have > both mentioned the existence of a program that prints full authentication > tokens, so that you can compare them. Perhaps they could send you a > pointer (or the source). > Igor -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/