X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <48287649.20203@cygwin.com> Date: Mon, 12 May 2008 12:54:33 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Lightning/0.8 Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Unable to run sshd under a domain sshd_server account References: <3B3EFBD49B94AD4DBB7B7097257A8046DD0135 AT FDSVAST06SXCH01 DOT flooddata DOT net> In-Reply-To: <3B3EFBD49B94AD4DBB7B7097257A8046DD0135@FDSVAST06SXCH01.flooddata.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Schutter, Thomas A. wrote: > I am having problems setting up sshd to run under a domain sshd_server > account instead of a local sshd_server account. > > Why do I want to do that? Because in the default install, starting a > cygwin shell from the console gives me a much different environment and > permissions than if I start a cygwin shell via ssh. For example, from a > console shell on the Windows 2003 Server: > $ echo $USER > tschutter > $ echo $USERNAME > tschutter > $ echo $HOSTNAME > fdsvbld01sgrape > $ echo $USERDOMAIN > FLOODDATA > $ id > uid=18718(tschutter) gid=10513(Domain Users) > groups=544(Administrators),545(Users),10513(Domain > Users),18169(FDSV-GG-PrxBLD),22611(FDSV-GG-PrxPCAdmins) > $ ls //other/f$ > Data RECYCLER System\ Volume\ Information > > But when I login via ssh: > $ echo $USER > tschutter > $ echo $USERNAME > sshd_server > $ echo $HOSTNAME > fdsvbld01sgrape > $ echo $USERDOMAIN > FDSVBLD01SGRAPE > $ id > uid=18718(tschutter) gid=10513(Domain Users) > groups=545(Users),10513(Domain Users) > $ ls //other/f$ > ls: cannot access //other/f$: Permission denied Obviously you're using pubkey authentication. If that's not an absolute requirement for you, then use password authentication. That will resolve your problem. Otherwise, if you must use pubkey authentication, I'll direct you to the FAQ: These are the recommended workarounds for this issue for the 1.5.x Cygwin package series. The 1.7.x Cygwin package series will offer an alternative approach which resolves the issue but is not released so it's only available in snapshots. Search for 'cyglsa' if you're curious about this new facility. -- 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/