delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/21/19:35:28

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sun, 21 Mar 2004 19:35:09 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: MIke Hanby <flakrat AT swbell DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: sshd on WinXP machine in Win2003 Domain -- can't log in
In-Reply-To: <c3lbf8$ibr$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.56.0403211933260.26885@slinky.cs.nyu.edu>
References: <c3lbf8$ibr$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Sun, 21 Mar 2004, MIke Hanby wrote:

> Hey y'all, (sorry if this double posts)
>
> System:  Windows XP Pro with brand new install of cygwin running sshd.  This
> system is a member
>              of a Widnows 2003 Active Directory domain.
>
> Problem:  I've gone through the config steps listed below and unable to
> connect to my sshd server.
>                 On the sshd server, from the cygwin prompt I enter the
> following:
>     $ ssh -p 3020 localhost
>     joeshmo AT localhost's password:
>     Last login: Sat Mar 20 16:01:17 2004 from localhost
>     Fanfare!!!
>     You are successfully logged in to this server!!!
>     /bin/bash: Permission denied
>     Connection to localhost closed.
>
> Permissions on /bin/bash were -rwxr-x---+, I tried adding +rx, still get the
> same error
>     -rwxr-xr-x+   1 joeshmo  Users      527360 Oct 20 07:12 /bin/bash*
>
> Here's what I did to configure sshd
> 1.  Installed Cygwin with packages that I downloaded today while logged in
> as my
>     Active Directory user, joeshmo
> 2.  Created a new Active Directory user, addomain\sshdproc, and added the
> following rights using the
>     Windows 2003 Server Local Security Policy
>         Create a token object
>         Log on as a service
>         Replcae a process level token
>         Adjust memory quotas for a process
> 3.  Added sshd as a service on the Windows XP Pro machine, it is set to
> start as the user
>      addomain\sshdproc
> 4.  Ran ssh-host-config and answered YES to all questions, including
> "privilege separation"
> 5.  Ran the following on the Windows XP machine
>      mkpasswd -l -d > /etc/passwd
>      mkgroup -l -d > /etc/group
> 6. changed permissions on the following files
>      touch /var/log/sshd.log
>      chmod 644 /var/log/sshd.log
>      chown sshdproc /var/empty /var/log/sshd.log /etc/ssh_*
> 7.  Start sshd
>      cygrunsrv --start sshd
>
> I then get the error above, /bin/bash: Permission denied
> Any idea what file(s) it might be referring to?
> Any ideas on what else I can do?
>
> Thanks in advance,
> Mike

Without the requisite information requested in the Cygwin problem
reporting guidelines at <http://cygwin.com/problems.html> we can only
guess, but, since you had to change the permissions on /bin/bash, I'd
guess that you'll need to change the permissions on at least /bin as well.
Also, try running sshd and ssh with a few -v flags (multiple -v's increase
the verbosity level)...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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