delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/14/15:28:43

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Brian Kasper <kasper AT aero DOT org>
Subject: Re: "/bin/bash: Permission denied" with ssh to localhost under WinXP 2003 x64?
Date: Tue, 14 Nov 2006 12:27:40 -0800
Lines: 59
Message-ID: <ejd8rt$pu5$1@sea.gmane.org>
References: <ejd1ur$vgu$1 AT sea DOT gmane DOT org> <01e401c70820$05ed6c50$a501a8c0 AT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
In-Reply-To: <01e401c70820$05ed6c50$a501a8c0@CAM.ARTIMI.COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

If I set my shell to "/bin/id -a" in /etc/passwd, I'm never able to log 
in successfully (I'm sure I typed my password correctly):

C:\cygwin\etc>ssh localhost
kasper AT localhost's password:
Permission denied, please try again.
kasper AT localhost's password:

If I set my shell to "/bin/id", I see this:

C:\cygwin\etc>ssh localhost
kasper AT localhost's password:
Last login: Tue Nov 14 12:09:47 2006 from 127.0.0.1
Fanfare!!!
You are successfully logged in to this server!!!
/bin/id: Permission denied
Connection to localhost closed.

I get "Permission denied" for /bin/sh as well, so it appears that I 
can't execute anything in the /bin directory when I try to connect with ssh.

Thanks for the suggestion.  I'm pretty much out of ideas at this point. 
  I've been using a Win2K system until recently, and I'm finding the 
whole issue of permissions in WinXP problematic.

Any other thoughts?

-B

Dave Korn wrote:
> On 14 November 2006 18:30, Brian Kasper wrote:
> 
>> Here's the text of my most recent login attempt:
>>
>>  >kasper 509 $ ssh localhost
>>  >kasper AT localhost's password:
>>  >Warning: No xauth data; using fake authentication data for X11
>>  >forwarding.
>>  >Last login: Tue Nov 14 10:00:34 2006 from 127.0.0.1
>>  >Fanfare!!!
>>  >You are successfully logged in to this server!!!
>>  >/bin/bash: Permission denied
>>  >Connection to localhost closed.
> 
>> working correctly.  The permissions on c:/cygwin/bin/bash.exe are ugo+rwx:
>>
>> -rwxrwxrwx 1 kasper Users 467968 Nov  2 19:22 /bin/bash.exe
>>
>> and I've given "full control" permission to "Everyone", "kasper", and
>> "sshd_server" for the entire c:/cygwin directory tree.
> 
>> I'd really appreciate any pointers anyone can offer.
> 
>   Try replacing '/bin/bash' with /bin/id -a' in your /etc/passwd, and let's
> see who cygwin thinks you are when you log in.  Then we can get into looking
> at ACLs.
> 
>     cheers,
>       DaveK


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