This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sshd connection refused, and problems with mail list


csimstemplar@flashcom.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@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@redhat.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]