X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=K7 /t89lmwZkkn5+kba0wUAcQsnXVCTtFoPegUiI5jebgIDs5WkeQJBBrKdBLObWcXT M2+wpBdaEgEdh0Dt1i3HQwDKZzJw1tJ6lkHQSkMFUQdoWeJ6z6v0yNoH4Zu7XRie wX0tRi1Pe+7Iebd8xdkMBqnPTYJisV0tifEYsC/yY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=wMQqtrBY cG7AHjN6tLXfOhhk1AI=; b=ndYxBr1dlQ9Cp8rbCpW305fzDuHd6jyXzTrVL4IT 5ptur5RGeb8OJr+PhSLSviChqVVhBp2eIuZVnmoOi5iF8sAasI0UObsTnvnoCoBO tRe0hkvjbxXbrdIz+vdo3P9vmYoESp3AFNj4ulTExSIF5YDGnDXLavCpJkbKz868 wIs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ee0-f41.google.com MIME-Version: 1.0 X-Received: by 10.14.183.2 with SMTP id p2mr6786366eem.44.1383161103816; Wed, 30 Oct 2013 12:25:03 -0700 (PDT) In-Reply-To: References: <526AC4AA DOT 4080208 AT cygwin DOT com> <526E9C2C DOT 7080803 AT cygwin DOT com> Date: Wed, 30 Oct 2013 12:25:03 -0700 Message-ID: Subject: Re: popen: Permission denied - error opening man page From: Balaji Venkataraman To: Cygwin Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes On Tue, Oct 29, 2013 at 3:32 PM, Balaji Venkataraman wrote: > On Mon, Oct 28, 2013 at 10:17 AM, Larry Hall (Cygwin) wrote: > >> The thread you pointed to suggested that a shell had permissions >> problems. While I agree that it doesn't quite sound like your >> issue, there's no harm in investigating and trying the solution >> proposed. > > Oh yes, that was the first thing I tried before mailing the list. It > didn't do anything for me. I realized I hadn't tried the workaround from that thread after I had wiped and re-installed Cygwin (32bit). The odd thing was that although /bin/bash.exe and /bin/sh.exe had the same timestamp (Feb 24 2011) and filesize (actually I can't be fully sure of this because I have ls -h turned on but the approx file sizes 524K were identical) they had different md5sums. Is that expected? So I went back and tried a few things. I deleted sh.exe and copied /bin/bash.exe over as /bin/sh.exe and surely the md5sum matches now. But the odd thing is that I still can't start a 'sh' shell from my bash shell - and I wasn't able to do that even with the original version of sh (the one I deleted before copying bash.exe to sh.exe). I can start a bash shell without any problems (as shown by SHLVL). See all commands followed by output below ('x86$' is my prompt). x86$ ll /bin/bash.exe /bin/sh.exe -rwxr-xr-x 1 Domain Users 524K Feb 25 2011 /bin/bash.exe* -rwxr-xr-x 1 Domain Users 524K Feb 25 2011 /bin/sh.exe* x86$ getfacl /bin/bash.exe /bin/sh.exe # file: /bin/bash.exe # owner: # group: Domain Users user::rwx group::r-x mask:rwx other:r-x # file: /bin/sh.exe # owner: # group: Domain Users user::rwx group::r-x mask:rwx other:r-x x86$ md5sum /bin/bash.exe /bin/sh.exe 1c65ac9a75207693798694b294620a76 */bin/bash.exe 1c65ac9a75207693798694b294620a76 */bin/sh.exe x86$ /bin/sh.exe bash: /bin/sh.exe: Permission denied x86$ echo $SHLVL 1 x86$ /bin/bash.exe x86$ echo $SHLVL 2 Thanks, Balaji -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple