From owner-freebsd-current Mon Jun 19 05:24:19 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id FAA13980 for current-outgoing; Mon, 19 Jun 1995 05:24:19 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id FAA13974 for ; Mon, 19 Jun 1995 05:24:11 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id WAA01179; Mon, 19 Jun 1995 22:22:07 +1000 Date: Mon, 19 Jun 1995 22:22:07 +1000 From: Bruce Evans Message-Id: <199506191222.WAA01179@godzilla.zeta.org.au> To: darrylo@sr.hp.com Subject: Re: bin/534: chmod doesn't work through symlinks Cc: current@freebsd.org Sender: current-owner@freebsd.org Precedence: bulk > File permissions cannot be changed if a file is referenced via a > symlink. You have to use the -R flag and either the -H or -L flag according to the man page (chmod.1): "Symbolic links do not have modes, so unless the -H or -L option is set, chmod on a symbolic link always succeeds and has no effect. The -H, -L options are ignored unless the -R option is specified". This differs from historical behaviour. See symlink.7 for why. Essentially, it is so that the -R, -H, -L and -P flags work the same for all commands that do tree traversals. Bruce