Python’s os.makedirs() with mode 0o777 doesn’t grant write permissions to others
When you call os.makedirs(path, mode=0o777) in Python, the resulting directory often won’t have the permissions you expect. The mode argument gets masked by the process’s umask, which removes certain permission bits before applying them to the filesystem. Your umask acts as a filter. If your umask is 0o022 (common on many systems), it removes write…
