Date: Mon, 19 Jun 1995 22:22:07 +1000 From: Bruce Evans <bde@zeta.org.au> To: darrylo@sr.hp.com Cc: current@freebsd.org Subject: Re: bin/534: chmod doesn't work through symlinks Message-ID: <199506191222.WAA01179@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506191222.WAA01179>