chmod g+ Equivalent

Steve Holden steve at
Tue Aug 14 02:06:09 CEST 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:


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

Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd 
Skype: holdenweb
--------------- 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