[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#8391: chmod setuid & setguid bits
From: |
Jim Meyering |
Subject: |
Re: bug#8391: chmod setuid & setguid bits |
Date: |
Tue, 06 Mar 2012 09:41:15 +0100 |
Paul Eggert wrote:
> On 03/05/2012 02:27 PM, Bruno Haible wrote:
>
>> Then how about using "==" or ":=" to designate the assignment?
>
> That's too fancy. Plain '=' would be better.
>
> We can also support notations like '+700' and '-77' to
> OR-in or AND-out arbitrary masks. This would be
> a clear and straightforward extension to the
> existing symbolic modes.
>
> Something like the attached patches for gnulib and
> coreutils, perhaps? If this looks OK
> I'll add test cases.
I like it. Thanks!
I noted one typo:
...
> diff --git a/doc/perm.texi b/doc/perm.texi
...
> address@hidden Operator Numeric Modes
> address@hidden Operator Numeric Modes
> +
> +An operator numeric mode is a numeric mode that is prefixed by a
> address@hidden, @samp{+}, or @samp{=} operator, which has the same
> +interpretation as in symbolic modes. For example, @samp{+440} enables
> +read permission for the file's owner and group, @samp{-1} disables
> +execute permission for other users, and @samp{=600} clears all
> +permissions that it enables read-write permissions for the file's
s/that/then/
> +owner. Operator numeric modes can be combined with symbolic modes by
> +separating them with a comma; for example, @samp{=0,u+r} clears all
> +permissions except for enabling read permission for the file's owner.
- Re: bug#8391: chmod setuid & setguid bits, Ondrej Vasik, 2012/03/05
- Re: bug#8391: chmod setuid & setguid bits, Bruno Haible, 2012/03/05
- Re: bug#8391: chmod setuid & setguid bits, Paul Eggert, 2012/03/05
- Re: bug#8391: chmod setuid & setguid bits, Bruno Haible, 2012/03/05
- Re: bug#8391: chmod setuid & setguid bits, Bob Proulx, 2012/03/05
- Re: bug#8391: chmod setuid & setguid bits, Ondrej Vasik, 2012/03/05
- Re: bug#8391: chmod setuid & setguid bits, Bruno Haible, 2012/03/05
- Re: bug#8391: chmod setuid & setguid bits, Ondrej Vasik, 2012/03/06
- Re: bug#8391: chmod setuid & setguid bits, Paul Eggert, 2012/03/06
- Re: bug#8391: chmod setuid & setguid bits,
Jim Meyering <=
- Re: bug#8391: chmod setuid & setguid bits, Paul Eggert, 2012/03/08