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 Date: Thu, 18 Mar 2004 15:00:01 -0500 From: "Pierre A. Humblet" To: cygwin AT cygwin DOT com Cc: Matt Berney Subject: Re: sshd authentication question Message-ID: <20040318200001.GB319523@Worldnet> References: <20040318184344 DOT GM17229 AT cygbert DOT vinschen DOT de> <20040318192424 DOT GA319523 AT Worldnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040318192424.GA319523@Worldnet> User-Agent: Mutt/1.4.1i On Thu, Mar 18, 2004 at 02:24:25PM -0500, Pierre A. Humblet wrote: > > Here is another hypothesis. Cygwin gets the groups from a variety of > sources during setuid(). One of them is a call to NetUserGetGroups > to get the global groups from the logon server. > Failure of that call does not call a failure of setuid, because it > happens normally while running disconnected. So the problem could be > with your logon server or your LAN. > That hypothesis seems consistent with the outputs of your original > mail. > Fortunately there is a workaround: edit /etc/group and explicitly > include the user in question in the groups that should contain him. Looking back at your original mail, you report *** Administrator on smoke3 *** uid=10500(Administrator) gid=10513(Domain Users) groups=10512(Domain Admins),105 13(Domain Users),10519(Enterprise Admins),10520(Group Policy Creator Owners),105 18(Schema Admins),544(Administrators),545(Users) When ssh works abnormally: *** Administrator on smoke3 *** uid=10500(Administrator) gid=10513(Domain Users) groups=10513(Domain Users),545(Users) I assume you care mainly about group 544 membership. It looks like that membership derives from membership in one of the global groups 10512, 10519, 10520 and/or 10518. If you care about all of them, include the user on the appropriate lines in /etc/group on the sshd machine. An alternative if you only care about 544 is to explicitly include 10500 as a member of the Administrators group in the Windows user manager on the sshd machine. The advantage is that you won't need to reedit /etc/group each time you regenerate it. Pierre -- 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/