Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!orstcs!uther.CS.ORST.EDU!pvo From: pvo@uther.CS.ORST.EDU (Paul V O'Neill) Newsgroups: comp.unix.questions Subject: Re: Testing execute permission from csh Message-ID: <10432@orstcs.CS.ORST.EDU> Date: 6 May 89 06:33:15 GMT References: <19486@adm.BRL.MIL> Sender: usenet@orstcs.CS.ORST.EDU Reply-To: pvo@oce.orst.edu (Paul V O'Neill) Organization: Oregon State Univ. - Oceanography Lines: 27 In article <19486@adm.BRL.MIL> Kemp@DOCKMASTER.NCSC.MIL writes: > >I want to change all the files to have world read permission, and all >the executables to have world execute. I tried the following in csh as >root: > > # foreach f (*) > ? if -x $f chmod o+x $f > ? end > > (I am using SunOS 4.0.1, if it matters.) > Why test? From the 4.0 man pages: X Give execute permission if the file is a directory or if there is execute permission for one of the other user classes. Try # chmod o+X * Paul O'Neill pvo@oce.orst.edu Coastal Imaging Lab OSU--Oceanography Corvallis, OR 97331 503-754-3251