| delorie.com/archives/browse.cgi | search |
| 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: | <cygwin.cygwin.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 |
| 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: | <CALgEz7qb3y_yLsh_8QaO5L+a=SmV=qf_L6=_5Ryy+LL0vp7kDA@mail.gmail.com> |
| References: | <CALgEz7qREyDuOD+RVuVY_OF8LXU2Z=n2WRdsehMC1vWJ_FXMnQ AT mail DOT gmail DOT com> <526AC4AA DOT 4080208 AT cygwin DOT com> <CALgEz7oZntmH+LTWhZirU0Po5shpwXf2XAUpxXhNjNzyd9SOcw AT mail DOT gmail DOT com> <526E9C2C DOT 7080803 AT cygwin DOT com> <CALgEz7qb3y_yLsh_8QaO5L+a=SmV=qf_L6=_5Ryy+LL0vp7kDA AT mail DOT gmail DOT com> |
| Date: | Wed, 30 Oct 2013 12:25:03 -0700 |
| Message-ID: | <CALgEz7puXozqYX6URSmOEBuj8LtyTZHasBMMfpuEDGvycwoK2A@mail.gmail.com> |
| Subject: | Re: popen: Permission denied - error opening man page |
| From: | Balaji Venkataraman <balaji DOT s DOT venkataraman AT gmail DOT com> |
| To: | Cygwin <cygwin AT cygwin DOT com> |
| 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 <EDITED> Domain Users 524K Feb 25 2011 /bin/bash.exe*
-rwxr-xr-x 1 <EDITED> Domain Users 524K Feb 25 2011 /bin/sh.exe*
x86$ getfacl /bin/bash.exe /bin/sh.exe
# file: /bin/bash.exe
# owner: <EDITED>
# group: Domain Users
user::rwx
group::r-x
mask:rwx
other:r-x
# file: /bin/sh.exe
# owner: <SAME AS ABOVE>
# 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |