delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/18/15:38:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: RE: serious problem in current CVS
Date: Fri, 18 Mar 2005 15:38:06 -0500
Message-ID: <336E93A5D77EC246881C518F41A47CCA9316EC@EXCHANGE1.atl.air2web.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Richard Campbell" <richard DOT campbell AT air2web DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j2IKcZIr026811

> In case this is not already known, the current CVS has a serious
problem -- attempts to rsh or 
> ssh in to a machine running a cygwin1.dll compiled from it fail with
an error message regarding 
> a failed setgid() call.

If the user logging into the machine is listed in /etc/passwd with a
primary group not present 
in /etc/group, yes.  This is not new to the current CVS.

With openssh 3.9p1-2 and cygwin 1.5.12-1:

campbe_r AT area51 $ cat /etc/passwd | grep campbe_r
campbe_r:unused_by_nt/2000/xp:11178:10513:Richard
Campbell,U-ATL\campbe_r,S-1-5-21-1060284298-1336601894-682003330-1178:/h
ome/campbe_r:/bin/bash
campbe_r AT area51 $ cat /etc/group | grep 10513
Domain Users:S-1-5-21-1060284298-1336601894-682003330-513:10513:
campbe_r AT area51 $ cat /etc/group | grep -v 10513 >/tmp/group2
campbe_r AT area51 $ mv /tmp/group2 /etc/group
campbe_r AT area51 $ ssh campbe_r AT localhost
campbe_r AT localhost's password: 
Last login: Fri Mar 18 15:35:19 2005 from localhost
Fanfare!!!
You are successfully logged in to this server!!!
setgid: Invalid argument
Connection to localhost closed.
campbe_r AT area51 $ mkgroup -l -d >/etc/group
campbe_r AT area51 $ cat /etc/group | grep 10513
Domain Users:S-1-5-21-1060284298-1336601894-682003330-513:10513:
campbe_r AT area51 $ ssh campbe_r AT localhost
campbe_r AT localhost's password: 
Last login: Fri Mar 18 15:36:59 2005 from localhost
Fanfare!!!
You are successfully logged in to this server!!!
campbe_r AT area51 $ logout
Connection to localhost closed.
campbe_r AT area51 $ 

Summary: run mkgroup -l -d >/etc/group

-Richard Campbell.

--
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019