X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Message-ID: <49B29464.4090507@byu.net> Date: Sat, 07 Mar 2009 08:36:04 -0700 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, pmcferrin AT columbus DOT rr DOT com Subject: Re: Turning off execute permission References: <49B22717 DOT 5020508 AT columbus DOT rr DOT com> In-Reply-To: <49B22717.5020508@columbus.rr.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Paul McFerrin on 3/7/2009 12:49 AM: > > I've been reading: > http://cygwin.com/1.7/cygwin-ug-net/ntsec.html#ntsec-files > on the execute permissions. Did I read that it was impossible to deny > execute permissions?? In my tests, the follow is always "true" if a > file has no execute permissions: (mode 666 or 000) > [ -x apachectl ] > test -x apachectl > for all of the shells Are you operating as an administrator? Just as in Linux, the superuser has the privilege of executing any file regardless of its permissions. test -x uses access() and not stat() to determine the answer of whether the file is executable for the currently logged on user, so this is accurately reporting what you are able to do with the file, regardless of what the permission bits are on the file. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmylGQACgkQ84KuGfSFAYCsrACgx/8PRpoCiDiBYeO/sP7MJDpu N38An0eaQa8N2U1a2VixH9w+sluTIBTe =oAqC -----END PGP SIGNATURE----- -- 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/