delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/02/07:20:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=3.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,TW_RW,TW_WX
X-Spam-Check-By: sourceware.org
Date: Fri, 2 Mar 2012 16:17:41 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1165460222.20120302161741@mtu-net.ru>
To: Paul Allen Newell <pnewell AT cs DOT cmu DOT edu>, cygwin AT cygwin DOT com
Subject: Re: question on Cygwin's version of make
In-Reply-To: <4F501DBD.8070407@cs.cmu.edu>
References: <4F4F21AC DOT 7060209 AT cs DOT cmu DOT edu> <CAB8Xom9zz5CN+yE6cHBj-h-PG4aUxghckkmAYZiQko8SfmNuhQ AT mail DOT gmail DOT com> <4F4F2877 DOT 4080006 AT cs DOT cmu DOT edu> <166537037 DOT 20120302025849 AT mtu-net DOT ru> <4F501DBD DOT 8070407 AT cs DOT cmu DOT edu>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Greetings, Paul Allen Newell!

>>> have a script to get rid of everything being an executable.
>> Does
>> chmod -x,+X -R /path/...
>> warrant a script?
>>
>>
>> --
>> WBR,
>> Andrey Repin (anrdaemon AT freemail DOT ru) 02.03.2012,<02:58>
>>
>> Sorry for my terrible english...
>>
>>
> Andrey:

> Thanks for the reply. In my case, it is very warranted as not everything 
> wants to be made an executable. Plus it allows me to deal with ugo 
> permissions.

If "not everything" is really "everything not", then

$ ls -l Programs/PuTTY/
total 4
-rwxr----- 1 anrdaemon anrdaemon 899 2011-03-14 19:49 PuTTY-Settings.reg

$ chmod -x,+X -R Programs

$ ls -l Programs/PuTTY/
total 4
-rw-r----- 1 anrdaemon anrdaemon 899 2011-03-14 19:49 PuTTY-Settings.reg

And ugo is dealt with through right umask. Which, in my case, is 0027
However, if your regular umask is different, you do need to use a script.


--
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 02.03.2012, <16:11>

Sorry for my terrible english...


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019