Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2005 05:03:02 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Remko Lodder <remko@freebsd.org>
Cc:        freebsd-doc@freebsd.org
Subject:   Re: Found a mistake
Message-ID:  <20050425020302.GA8526@gothmog.gr>
In-Reply-To: <426AD28A.4080704@FreeBSD.org>
References:  <426AD1C1.8070506@bigfoot.com> <426AD28A.4080704@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-04-24 00:56, Remko Lodder <remko@freebsd.org> wrote:
> S.L.L. Tan wrote:
> >In section 3.3.1 on this page:
> >http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/permissions.html
> >The last paragraph says:
> >"A comma separated list can be provided when more than one set of
> >changes to a file must be made. For example the following command will
> >remove the groups and ``world'' write permission on FILE, then it adds
> >the execute permissions for everyone:
> >
> >% chmod go-w,a+x FILE
> >"
> >The command does not do what the text says. The text says "world" but
> >the command is for "Other".
>
> Other also stands for "world". If you are not the owner of the file,
> nor are in the group, the other permissions (aka world) are right for
> you.
>
> So the command does what is says it does imo.

I sort of agree that the description of the command could probably use a
bit of rewording though.  Perhaps something like this?

:       For example the following command removes the write
:       permission from everyone except the user who owns the file
:       (``group'' and ``other'' modifiers of the ``-w'' flag) and
:       then add execute permission for everyone (``all'' modified
:       for the ``+x'' flag).
:
:       % chmod go-w,a+x FILE



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