delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/15/05:41:52

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 15 Jan 2002 11:35:21 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: openssh issue with UID's over 65535
Message-ID: <20020115113521.Q2015@cygbert.vinschen.de>
Mail-Followup-To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
References: <911C684A29ACD311921800508B7293BA037D2A05 AT cnmail>
Mime-Version: 1.0
In-Reply-To: <911C684A29ACD311921800508B7293BA037D2A05@cnmail>
User-Agent: Mutt/1.3.22.1i

On Mon, Jan 14, 2002 at 08:12:00PM -0500, Mark Bradshaw wrote:
> I have an issue with openssh and UID's over 65535.  Similar things were
> discussed a bit back, but this is slightly different.  Seems that sshd will
> die when a user with a UID too high logs in.  The root cause of this is
> cygwin's use of an unsigned short for uid_t, instead of an integer.  As the
> UID goes through the ssh server, session.c calls get_last_login_time
> (sshlogin.c) with an integer variable.  When it hits get_last_login_time,
> however, it's squashed into a uid_t, which is too small for it.  The uid
> changes and problems occur.
> 
> I'm guessing it wouldn't be too swift to just change the definition in
> types.h.  That oughta break lotsa stuff.  Is there some clear path to
> getting uid_t changed to an int, or is there a different/better fix for
> this?

Change the UIDs in /etc/passwd to be smaller than 65536.

Changing uid_t to unsigned int would break almost all Cygwin
applications.  We wouldn't be backward compatible.  We can't
do this.  At least at this point.  I would expect some more
really interesting changes in Cygwin before breaking
backward compatible.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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

- Raw text -


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