Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 2000 17:45:15 +0100
From:      Nik Clayton <nik@freebsd.org>
To:        Suresh Bhushan <sbhushan@smartshop.com>
Cc:        doc@FreeBSD.org, surbush@hotmail.com
Subject:   Re: Answer to the point
Message-ID:  <20000429174515.M706@kilt.nothing-going-on.org>
In-Reply-To: <38EE79F9.4C9AF506@smartshop.com>; from sbhushan@smartshop.com on Fri, Apr 07, 2000 at 05:14:49PM -0700
References:  <38EE79F9.4C9AF506@smartshop.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000429174515.M706>