Changing file permission in Python
os.chmod(path, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH) stat The following flags can also be used in the mode argument of os.chmod(): stat.S_ISUID Set UID bit. stat.S_ISGID Set-group-ID bit. This bit has several special uses. For a directory it indicates that BSD semantics is to be used for that directory: files created there inherit their group ID … Read more