GNU bug report logs - #8391
chmod setuid & setguid bits

Previous Next

Package: coreutils;

Reported by: Christian <chris <at> computersalat.de>

Date: Thu, 31 Mar 2011 16:48:04 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #107 received at 8391 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: chris <at> computersalat.de, bug-gnulib <at> gnu.org, Bruno Haible <bruno <at> clisp.org>,
	8391 <at> debbugs.gnu.org
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
...
> +@node Operator Numeric Modes
> +@section Operator Numeric Modes
> +
> +An operator numeric mode is a numeric mode that is prefixed by a
> +@samp{-}, @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.




This bug report was last modified 13 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.