X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=acMW22FB3y4g+/d5TZ2YqCFq2M9q6FiHTW7oiGoQZa/ qBbla0Y8uKX1u+LNzSPRBGbp2eBcJTWovRnxlRNGlPeW2d4BTSMibM5STCTNibtK CINV9vazbSuj+qCNXJXlY1bM16zLevtNkASovHJk8b+CJyNsX0f+bjAG9BWe4p+M = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=wfI68+ghPHhssnxx8IVoNKtpDAI=; b=rgL/RkMj4boJ6Nl/U 3KaarhAJJucCnLI4Da1JOQ37exqkmS6cwihP31dSJrcUp1EHrhfGcfgDxkR3WcGw H/dIH1IgBOPsV39WOl6VjpEN5MGzIyZL1utvXV/XIGwXy+cJDvNFqglA7u/tsZ7r aRJOJmNlfLOKkUszG4tKASTKjY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=AWL,BAYES_00,CYGWIN_OWNER_BODY,MSGID_MULTIPLE_AT,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: nschwmtas04p.mx.bigpond.com X-Authentication-Info: Submitted using ID max DOT rockliff AT bigpond DOT com X-Authority-Analysis: v=2.0 cv=F6HVh9dN c=1 sm=1 a=6VslrNzXsdlmF2QCmrgadw==:17 a=IkcTkHD0fZMA:10 a=1IlZJK9HAAAA:8 a=w_pzkKWiAAAA:8 a=GvN_UbBc-DgwIw3Y9l4A:9 a=QEXdDO2ut3YA:10 a=6VslrNzXsdlmF2QCmrgadw==:117 From: "Max Rockliff" To: References: <003601d05be4$d2574470$7705cd50$@rockliff AT bigpond DOT com> <20150311111729 DOT GW5732 AT calimero DOT vinschen DOT de> <004e01d05bf1$2897d730$79c78590$@rockliff AT bigpond DOT com> <20150311120705 DOT GX5732 AT calimero DOT vinschen DOT de> In-Reply-To: <20150311120705.GX5732@calimero.vinschen.de> Subject: RE: Non-privileged use can't logon Date: Wed, 11 Mar 2015 20:40:05 +0800 Message-ID: <005d01d05bf8$8104b210$830e1630$@rockliff@bigpond.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t2BCeUBC012736 Hey Corinna, You're a magician. It seems to have fixed the problem, or at least provided an effective workaround. Here's a transcript (kinda) 1. Downloaded the new cygwin1-20150311.dll.xz (PS. Kudos for using a yyyymmdd format in the name - I always do, but so many don't 2. Copied the xz file to my privileged user account home folder and Unxz'ed it. 3. Used Windows to copy the file cygwin1-20150311.dll to the C:\cygwin\bin folder 4. Stopped the SSHD service 5. Renamed the old cygwin1.dll to cygwin1.dll.old 6. Renamed cygwin1-20150311.dll to cygwin1.dll 7. Started the SSHD service 8. Started the terminal 9. Executed ssh st AT localhost and it logged on successfully no errors. Max AT Max-PC /bin $ ssh st AT localhost st AT localhost's password: Last login: Wed Mar 11 20:32:00 2015 from ::1 st AT Max-PC ~ $ 10. And, as we like to say in Australia - Sweet! What on earth did you change that made the error go away? Max -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Corinna Vinschen Sent: Wednesday, 11 March 2015 8:07 PM To: cygwin AT cygwin DOT com Subject: Re: Non-privileged use can't logon On Mar 11 19:47, Max Rockliff wrote: > Ok. Let's see if I can answer all your questions. > > I'm logging on with a password > I'm running 32bit Vista Ultimate - Windows6.06.6002, Service Pack 2 > (sorry, I think I said Home Premium before) I installed the 32 Cygwin > using setup-x86.exe icacls c:/Windows/System32/userenv.dll produces the following > c:/Windows/System32/userenv.dll NT SERVICE\TrustedInstaller:(F) > BUILTIN\Administrators:(RX) > NT AUTHORITY\SYSTEM:(RX) > BUILTIN\Users:(RX) > > For comparison the following is the output from an ls -l command on the same file, but it appears o be similar. > $ ls -l c:/Windows/System32/userenv.dll > -rwxr-xr-x 3 Max None 108544 Apr 11 2009 > c:/Windows/System32/userenv.dll > > The local Windows account I'm using is call 'st' and it is a member of the Users group (which appears to have Read eXecute privilege, exactly the same as the local group, Administrators. Hmmmm... Thanks for the info. > Any ideas? Depends. As for the actual cause why userenv.dll refuses to load, no. It's just a simple LoadLibrary call, nothing fancy. I just tried the same scenario on my local 8.1 test machine and logging in with an unprivileged account worked fine. I tried to come up with a workaround for the problem, though. I just uploaded a new developer snapshot to https://cygwin.com/snapshots/ Just fetch the latest 32 bit cygwin1.dll, http://cygwin.com/snapshots/x86/cygwin1-20150311.dll.xz Unxz it, chmod +x it. Stop all Cygwin processes. In Windows Explorer, open the C:\cygwin\bin directory. Rename the original cygwin1.dll to cygwin1.dll.ORIG. Move the new cygwin1-20150311.dll into place and rename it to cygwin1.dll. Retry your scenario. And please report back. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer 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