delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/26/18:42:11

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39F8B31B.BCF23195@redhat.com>
Date: Fri, 27 Oct 2000 00:41:31 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
Reply-To: cygwin <cygwin AT sources DOT redhat DOT com>
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin AT sources DOT redhat DOT com
Subject: Re: sshd connection refused, and problems with mail list
References: <20001026175856 DOT 25571 DOT cpmta AT c014 DOT sfo DOT cp DOT net>

csimstemplar AT flashcom DOT net wrote:
> > I renamed the administrator account as johnl, this is a security trick, the  home directory listed in passwd for johnl is /bin/sh
> Huh? That's a shell, no home directory. The home directory is the
> field before the shell.
> 
> I went to the administrator tools and renamed the administrator account to johnl.

That's not what I'm talking about. The /bin/sh entry in /etc/passwd
isn't the home directory field but the login shell field. As it's
visible in the below /etc/passwd, you didn't enter your home directory
in the appropriate field. You know the layout of the /etc/passwd field
in U*X systems? If not, assuming your home directory is /home/johnl,
you'll have to change the line

 johnl::500:513:,S-1-5-21-...-500::/bin/sh

to

 johnl::500:513:,S-1-5-21-...-500:/home/johnl:/bin/sh

ssh and sshd always use the home directory entry in /etc/passwd,
never $HOME.

> I don't understand the meaning of the following lines in /etc/passwd
> ############
> Everyone:*:0:0:,S-1-1-0::
> SYSTEM:*:18:18:,S-1-5-18::
> Guest::501:513:,S-1-5-21-762067976-532226374-1540833222-501::/bin/sh
> johnl::500:513:,S-1-5-21-762067976-532226374-1540833222-500::/bin/sh
> johnl2::1001:513:,S-1-5-21-762067976-532226374-1540833222-1001::/bin/sh
> TEX::1000:513:Steve Stewart,S-1-5-21-762067976-532226374-1540833222-1000::/bin/sh
> ############
> 
> I assume that these are hash values of the password I entered manually.

No, this are SIDs, a Windows NT datastructure. I suggest reading the
documentation under

http://sources.redhat.com/cygwin/docs.html

especially the chapter about NT security:

http://sources.redhat.com/cygwin/cygwin-ug-net/ntsec.html

> During the ssh-config, I was prompted twices to enter a phrase, I entered the password for johnl, as the phrase.

Which isn't needed. Again, read the documentation, in case of ssh
I suggest reading the man pages for ssh and friends which are
installed on your system after the standard install.

Corinna

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

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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