emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#5826: marked as done ([feature] chmod +S to setg


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#5826: marked as done ([feature] chmod +S to setgid directories alike +X)
Date: Sat, 03 Apr 2010 19:59:01 +0000

Your message dated Sat, 3 Apr 2010 13:57:59 -0600
with message-id <address@hidden>
and subject line Re: bug#5826: [feature] chmod +S to setgid directories alike +X
has caused the GNU bug report #5826,
regarding [feature] chmod +S to setgid directories alike +X
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact address@hidden
immediately.)


-- 
5826: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5826
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [feature] chmod +S to setgid directories alike +X Date: Sat, 3 Apr 2010 13:04:25 +0200
Hello,

I would really appreciate if chmod supported setting setgid permissions
on directories (and files already having such) recursively, much like
'+X' does set executable permission. To match the '+X' one, I suggest
using '+S' for that.

-- 
Best regards,
Michał Górny

<http://mgorny.alt.pl>
<xmpp:address@hidden>




--- End Message ---
--- Begin Message --- Subject: Re: bug#5826: [feature] chmod +S to setgid directories alike +X Date: Sat, 3 Apr 2010 13:57:59 -0600 User-agent: Mutt/1.5.18 (2008-05-17)
Michał Górny wrote:
> I would really appreciate if chmod supported setting setgid permissions
> on directories (and files already having such) recursively, much like
> '+X' does set executable permission. To match the '+X' one, I suggest
> using '+S' for that.

I suggest using 'find' for this.  And there is an advantage to using a
standard command.  It works anywhere.

  $ find . -type d -exec chmod g+s {} +

Also the setgid bit isn't like the execute bit.  They can't be directly
compared.  There are three execute bits.  The +X implements a not
completely trivial control flow.  If the file is a directory OR if the
file already had the user execute bit or the group execute bit or the
other execute bit set.  It is the three execute bits that makes it
non-trivial and the usefulness of the +X mode.  But by contrast
setting the setgid bit is very simple.  Just set it.  It is only one
bit.

Plus there are security ramifications to think about when setting the
setgid bit on files.  And the decisions are operating system
dependent.  On most systems scripts should never be suid/sgid.  And
even on systems where it is safe to do so I don't think setting the
suid/sgid bit on normal executables is something that should be done
lightly.

Bob


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]