chmod g+ Equivalent

Steve Holden steve at holdenweb.com
Mon Aug 13 20:06:09 EDT 2007


milan_sanremo wrote:
> I've read the documentation on os.chmod() and can implement all the
> standard commands, but what is the syntax for the equivalent of chmod g
> + to set the group id?
> 

I assume when you say "to set the group id" you actually mean "to assert 
the setgid bit"? I further presume that when you say "chmod g+" you 
actually mean "chmod g+s".

You can't have read the documentation very thoroughly. It says right at 
the top:

S_ISUID
S_ISGID

Of course, your process needs to have root privilege in order to be able 
to do that.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------




More information about the Python-list mailing list