This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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>
- Date: Wed, 30 Oct 2013 12:25:03 -0700
- Subject: Re: popen: Permission denied - error opening man page
- Authentication-results: sourceware.org; auth=none
- 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>
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