delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/02/22:19:46

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
Date: Tue, 2 Nov 2004 22:14:55 -0500
From: "Pierre A. Humblet" <pierre DOT humblet AT ieee DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: sshd login problems
Message-ID: <20041103031454.GA553095@hpn5170>
References: <41881027 DOT 9060407 AT aass DOT oru DOT se>
Mime-Version: 1.0
In-Reply-To: <41881027.9060407@aass.oru.se>
User-Agent: Mutt/1.4.1i

On Tue, Nov 02, 2004 at 11:54:31PM +0100, Martin Magnusson wrote:
> I'm having trouble setting up correct user and group permissions for 
> logging on to a computer using ssh. I have installed sshd and cygrunsrv, 
> and I believe that the server itself is running properly. I start it 
> with "cygrunsrv -S sshd". However, when trying to logon from a remote 
> (Linux) computer, I get:
> 
> ~ ssh -l remote-user xxx.xxx.xxx.xxx
> remote-user AT xxx DOT xxx DOT xxx DOT xxx's password:
> Last login: Tue Nov  2 10:35:21 2004 from yyy
> setgid: Invalid argument
> Connection to xxx.xxx.xxx.xxx closed.
> 
> I use Windows XP on the host machine, and I have created a new user 
> account, with a password, for this purpose. I'm guessing that the error 
> lies somewhere in /etc/passwd and /etc/group.
> The line corresponding to the remote user in /etc/passwd looks like this:
> remote-user:unused_by_nt/2000/xp:1008:513:remote-user,U-LATERALUS\remote-user,S-1-5-21-1547161642-343818398-725345543-1008:/home/martin:/bin/bash
> (I hope there's no risk posting the contents of the passwd file here...)
> 
> My /etc/group looks like this:
> root:S-1-5-32-544:0:
> SYSTEM:S-1-5-18:18:
> 
> What can I do?

Add 513 to /etc/group
"mkgroup -l > /etc/group" should do that. In fact it should have done it together
with the two entries you have, 0 and 18. Weird.

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/

- Raw text -


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