How can we remove a particular permission for all using os.chmod ?
In short, how can we write the below using os.chmod
chmod a-x filename
I do know that we can add permission to an existing one and remove also.
In [1]: import os, stat
In [5]: os.chmod(file, os.stat(file).st_mode | stat.S_IRGRP) # Make file group readable.
But I am not able to figure out the doing the all operation