Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <02e701c2e8c7$065f4cc0$78d96f83@pomello> From: "Max Bowsher" To: "Mark Ovens" Cc: References: <1CA079E0A10FD7119DC20002A544C5BE553BDC AT eesusciexs3 DOT eesus DOT jnj DOT com> <3E6F64BB DOT 2060605 AT ntlworld DOT com> <015201c2e8ba$8c21c660$78d96f83 AT pomello> <3E6F7E38 DOT 8030409 AT ntlworld DOT com> Subject: Re: SOLVED: Re: SHELL on W2K (gmake 3.79.1) is cmd.exe not /bin/sh Date: Wed, 12 Mar 2003 18:41:41 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Mark Ovens wrote: > Max Bowsher wrote: >> Get him to run "ls -l /bin/sh" and also "id" and send the output >> here. >> > > /bin/sh.exe had no perms set (and neither did anything else in /bin) > > I did a ''chmod 000 /bin/sh.exe'' on my system and got the same > problem. > > I had checked with him early on that sh was executable, but by running > it from the command line, and it worked. Just to test this I tried > myself: > > marder-1:~{32}$ ls -l /bin/sh.exe > -rwx------+ 1 marko None 69632 Jul 31 2002 /bin/sh.exe > marder-1:~{33}$ chmod 000 /bin/sh.exe > marder-1:~{34}$ ls -l /bin/sh.exe > ----------+ 1 marko None 69632 Jul 31 2002 /bin/sh.exe > marder-1:~{35}$ /bin/sh > \h:\w{\#}$ exit > marder-1:~{36}$ > > That shouldn't work, surely? Without the execute bit set it should > throw a "Command not found" or similar. This weirdness arises due to the difficulties in mapping ACLs to Unix permission bits. (Actually, the very latest, just released, not yet on all the mirrors, version 1.3.21 of cygwin has an improvement relating to this.) Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/