X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <008e01c844f2$489f8f50$05dc10ac@rineraderek> From: "Derek Lei Liu" To: "barboles" , References: <469518C3 DOT 1070302 AT nuclearwinter DOT com> <46951DCD DOT 7000501 AT cygwin DOT com> <4695403B DOT 7090506 AT nuclearwinter DOT com> <4695430F DOT 5020002 AT cygwin DOT com> <14472206 DOT post AT talk DOT nabble DOT com> Subject: Re: sshd - inconsistent app behavior vs console Date: Sat, 22 Dec 2007 15:27:55 -0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-IsSubscribed: yes 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 This problem has dragged me for a long time. ( i was trying to make devenv.exe work through sshd on cygwin). My conclusion is that you can use password authentication, otherwise it won't work. (if you use password authentication, it should work, otherwise you have different problem). My understanding of the problem is that: sshd is running under a system user which is SYSTEM on your windows. So if you are using a different user, say JohnSmith, to ssh log in, and you are not using password authentication, you are in fact not properly authenticated with Windows. So windows still consider your session is under SYSTEM, not JohnSmith. (to verify that, once you ssh in and got a bash shell, look at USERNAME). Only if you use password authentication and explicitly typed the password, Windows can get you authenticated properly and then your ssh session is running under JohnSmith. This user difference caused some application (in my case devenv.exe) permission problem and the application can not run correctly. So now, i am using Expect to explicitly "type" password to emulate passwordless log in, to some extend. Derek ----- Original Message ----- From: "barboles" To: Sent: Saturday, December 22, 2007 10:58 AM Subject: Re: sshd - inconsistent app behavior vs console > > Hello, I've got the same problem. Does Anybody know the solution? how Can > I > resolve this problem? > please help me? > > > Larry Hall (Cygwin) wrote: >> >> Larkin Lowrey wrote: >>> Larry Hall (Cygwin) wrote: >>>> You've left allot for us to infer from your description, including your >>>> Cygwin configuration (sshd and general), how you ssh in (password or >>>> pubkey), and even what vshadow is! I'd recommend a read through of >>>> the problem reporting guidelines found here: >>>>> Problem reports: http://cygwin.com/problems.html >>>> My WAG is that you're using pubkey authentication. If so, try >>>> password. >>> I apologize for not providing enough information but you did come up >>> with the correct reason. When I logged in via password, and not public >>> key, the vshadow program did function correctly. >>> >>> After doing some searching I have concluded that this operation is not >>> possible using public key authentication. >> >> >> Right. Not in 1.5.x. >> >> >> -- >> Larry Hall http://www.rfk.com >> RFK Partners, Inc. (508) 893-9779 - RFK Office >> 216 Dalton Rd. (508) 893-9889 - FAX >> Holliston, MA 01746 >> >> _____________________________________________________________________ >> >> A: Yes. >> > Q: Are you sure? >> >> A: Because it reverses the logical flow of conversation. >> >>> Q: Why is top posting annoying in email? >> >> -- >> 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/ >> >> >> > > -- > View this message in context: > http://www.nabble.com/sshd---inconsistent-app-behavior-vs-console-tp11545397p14472206.html > Sent from the Cygwin list mailing list archive at Nabble.com. > > > -- > 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/ > -- 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/