From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19116 invoked from network); 4 Mar 2000 13:20:38 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Mar 2000 13:20:38 -0000 Received: (qmail 27962 invoked by alias); 4 Mar 2000 13:20:26 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2944 Received: (qmail 27955 invoked from network); 4 Mar 2000 13:20:25 -0000 From: Bruce Stephens To: zsh-users@sunsite.auc.dk Subject: Re: zsh tips for "UNIX Power Tools" References: <28174.952013581@jpeek.com> <20000303123932.A11036@picard.franken.de> <87k8jjwt6h.fsf@cenderis.demon.co.uk> <20000304124329.C1805@picard.franken.de> Date: 04 Mar 2000 12:43:44 +0000 In-Reply-To: Thomas=?iso-8859-1?q?_K=F6hler's?= message of "Sat, 4 Mar 2000 12:43:29 +0100" Message-ID: <87r9dq7vnj.fsf@cenderis.demon.co.uk> User-Agent: Gnus/5.0804 (Gnus v5.8.4) XEmacs/21.2 (Iris) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: bruce@cenderis.demon.co.uk Thomas K=F6hler writes: > On Sat, Mar 04, 2000 at 12:08:21AM +0100, > Bruce Stephens wrote: [...] > > What's wrong with > >=20 > > chmod -R go+rX . >=20 > It simply sets wrong permissions :-) > (and not every chmod has -R, which is bad) >=20 > [from "man chmod"]: > The letters `rwxXstugo' select the new permissions for the > affected users: [...] execute only if the file is a directory > or already has execute permission for some user (X) > Oops - there's already some plain file mode 755 which I want to have > mode 644 - your solution won't work... Yes, depends on what you're trying to do. I was thinking of having a tree of files and making them accessible to other people; you seem to be thinking of having a tree of files which (incorrectly) are executable (perhaps because they come from a zip file or something). It's also doubtless the case that some chmod's don't have -R and/or X, although Solaris 2.5.1 does, so it's not *just* GNU chmod that works.