delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/21/09:29:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Subject: Re: sshd: setgid() fails on second login
From: David Means <dmeans AT the-means DOT net>
To: cygwin AT cygwin DOT com
In-Reply-To: <20021218185034.9606.qmail@the-means.net>
References: <20021218185034 DOT 9606 DOT qmail AT the-means DOT net>
Organization: The-Means.net
Message-Id: <1040480924.20802.4.camel@milo>
Mime-Version: 1.0
Date: 21 Dec 2002 09:28:44 -0500

--=-BIdXL6Fq+Ba8cD8ynHBn
Content-Type: multipart/alternative; boundary="=-s3dmhYKD7Wrt1+nmhMGP"


--=-s3dmhYKD7Wrt1+nmhMGP
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hum... I should have known.  A reboot fixed the problem.  I suppose that
what I get for being a Unix geek: you don't _have_ to reboot a unix
system to fix broken stuff. (unless it's really broken, like disks, etc,
etc).


On Wed, 2002-12-18 at 13:50, dmeans AT milo DOT the-means DOT net wrote:

> I've recently installed cygwin version 1.3.17.
>=20
> When I attempt to ssh to the cygwin host more than once, with the
> first connection still active, I get the error message
> 'setgid: invalid argument' , and then I'm disconnected.
>=20
> Below is an example of the problem.  The first 'ssh localhost' is
> sucessful (which indicates to me that setgid() succeeded), but
> the second 'ssh localhost' fails.
>=20
> This problem is reproducable regardless of the client (localhost
> or remote) or the authentication method (keys vs. passwords), or
> any mixture there of.  In other words, if I'm logged in once via
> ssh, then I cannot log in again via ssh.
>=20
> I've searched the web and the archives for clues, but I'm coming up
> empty.
>=20
> Thanks,
>=20
> David
>=20
> --
>=20
>=20
> Example:
>=20
> [ /home/dmeans ]
> dmeans AT raptor
> 2$ ssh localhost
> Last login: Wed Dec 18 13:22:08 2002 from raptor
> Fanfare!!!
> You are successfully logged in to this server!!!
>=20
> [ /home/dmeans ]
> dmeans AT raptor
> 10$ ssh localhost
> Last login: Wed Dec 18 13:23:31 2002 from raptor
> Fanfare!!!
> You are successfully logged in to this server!!!
> setgid: Invalid argument
> Connection to localhost closed.
>=20
> [ /home/dmeans ]
> dmeans AT raptor
> 11$
>=20
>=20
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/

--=20
David Means

No trees were killed in the sending of this message. However,
a large number of electrons were terribly inconvenienced.

--=-s3dmhYKD7Wrt1+nmhMGP
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; CHARSET=3DUTF-8">
  <META NAME=3D"GENERATOR" CONTENT=3D"GtkHTML/1.1.6">
</HEAD>
<BODY>
Hum... I should have known.&nbsp; A reboot fixed the problem.&nbsp; I suppo=
se that what I get for being a Unix geek: you don't _have_ to reboot a unix=
 system to fix broken stuff. (unless it's really broken, like disks, etc, e=
tc).<BR>
<BR>
<BR>
On Wed, 2002-12-18 at 13:50, dmeans AT milo DOT the-means DOT net wrote:
<BLOCKQUOTE TYPE=3DCITE>
<PRE><FONT COLOR=3D"#050c87" SIZE=3D"3"><I>I've recently installed cygwin v=
ersion 1.3.17.

When I attempt to ssh to the cygwin host more than once, with the
first connection still active, I get the error message
'setgid: invalid argument' , and then I'm disconnected.

Below is an example of the problem.  The first 'ssh localhost' is
sucessful (which indicates to me that setgid() succeeded), but
the second 'ssh localhost' fails.

This problem is reproducable regardless of the client (localhost
or remote) or the authentication method (keys vs. passwords), or
any mixture there of.  In other words, if I'm logged in once via
ssh, then I cannot log in again via ssh.

I've searched the web and the archives for clues, but I'm coming up
empty.

Thanks,

David

--


Example:

[ /home/dmeans ]
dmeans AT raptor
2$ ssh localhost
Last login: Wed Dec 18 13:22:08 2002 from raptor
Fanfare!!!
You are successfully logged in to this server!!!

[ /home/dmeans ]
dmeans AT raptor
10$ ssh localhost
Last login: Wed Dec 18 13:23:31 2002 from raptor
Fanfare!!!
You are successfully logged in to this server!!!
setgid: Invalid argument
Connection to localhost closed.

[ /home/dmeans ]
dmeans AT raptor
11$


--
Unsubscribe info:      </FONT><A HREF=3D"http://cygwin.com/ml/#unsubscribe-=
simple"><FONT SIZE=3D"3">http://cygwin.com/ml/#unsubscribe-simple</FONT></A=
>
<FONT COLOR=3D"#050c87" SIZE=3D"3">Bug reporting:         </FONT><A HREF=3D=
"http://cygwin.com/bugs.html"><FONT SIZE=3D"3">http://cygwin.com/bugs.html<=
/FONT></A>
<FONT COLOR=3D"#050c87" SIZE=3D"3">Documentation:         </FONT><A HREF=3D=
"http://cygwin.com/docs.html"><FONT SIZE=3D"3">http://cygwin.com/docs.html<=
/FONT></A>
<FONT COLOR=3D"#050c87" SIZE=3D"3">FAQ:                   </FONT><A HREF=3D=
"http://cygwin.com/faq/"><FONT SIZE=3D"3">http://cygwin.com/faq/</I></FONT>=
</A></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING=3D"0" CELLPADDING=3D"0" WIDTH=3D"100%">
<TR>
<TD>
<PRE>--=20
David Means

No trees were killed in the sending of this message. However,
a large number of electrons were terribly inconvenienced.</PRE>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>

--=-s3dmhYKD7Wrt1+nmhMGP--

--=-BIdXL6Fq+Ba8cD8ynHBn
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEABECAAYFAj4EepwACgkQUd0KwqAz4aqL0ACfe+Jba/KG322vD2/0/XX60qC6
M/kAoJNJmHpCjdjPEu1xZ12JoIOWvqUO
=qK0T
-----END PGP SIGNATURE-----

--=-BIdXL6Fq+Ba8cD8ynHBn--

- Raw text -


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