From owner-freebsd-doc Sun Apr 30 15: 8:14 2000 Delivered-To: freebsd-doc@freebsd.org Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (Postfix) with ESMTP id 94FDE37BF9F for ; Sun, 30 Apr 2000 15:08:09 -0700 (PDT) (envelope-from nik@nothing-going-on.demon.co.uk) Received: from kilt.nothing-going-on.org (kilt.nothing-going-on.org [192.168.1.18]) by nothing-going-on.demon.co.uk (8.9.3/8.9.3) with ESMTP id WAA51879; Sun, 30 Apr 2000 22:12:38 +0100 (BST) (envelope-from nik@catkin.nothing-going-on.org) Received: (from nik@localhost) by kilt.nothing-going-on.org (8.9.3/8.9.3) id RAA01923; Sat, 29 Apr 2000 17:45:15 +0100 (BST) (envelope-from nik@catkin.nothing-going-on.org) Date: Sat, 29 Apr 2000 17:45:15 +0100 From: Nik Clayton To: Suresh Bhushan Cc: doc@FreeBSD.org, surbush@hotmail.com Subject: Re: Answer to the point Message-ID: <20000429174515.M706@kilt.nothing-going-on.org> References: <38EE79F9.4C9AF506@smartshop.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <38EE79F9.4C9AF506@smartshop.com>; from sbhushan@smartshop.com on Fri, Apr 07, 2000 at 05:14:49PM -0700 Organization: FreeBSD Project Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Apr 07, 2000 at 05:14:49PM -0700, Suresh Bhushan wrote: > >Q: Why won't chmod change the permissions on symlinks? > > > >A: You have to use either ``-H'' or ``-L'' together with the ``-R'' option to >make this work. See the chmod and symlink man pages for more info. > > Man page for chmod gives > -H If the -R option is specified, symbolic links on the > command line > are followed. (Symbolic links encountered in the tree > traversal > are not followed.) > > -L If the -R option is specified, all symbolic links are > followed. > > hey, question is not for recursion or for follow-links. The question is badly worded. It's supposing that you have two files, foo, and bar (which is a symlink to foo). The question assumes you're asking "When I 'chmod g-w bar', why does that not affect 'foo'". The question you're asking is "When I 'chmod g-w bar' nothing happens to 'bar'". I've added some additional text to make this clearer. N -- Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95. Telephone line, $24.95 a month. Software, free. USENET transmission, hundreds if not thousands of dollars. Thinking before posting, priceless. Somethings in life you can't buy. For everything else, there's MasterCard. -- Graham Reed, in the Scary Devil Monastery To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message