Closed buddly27 closed 3 years ago
By default, the /tmp/wiz log folder is created with mode 0o777 (https://docs.python.org/3/library/os.html#os.makedirs), but depending on the umask, it can mess up with the permissions:
/tmp/wiz
0o777
> os.umask(0o0022) > os.makedirs("/tmp/test") > oct(os.stat("/tmp/test").st_mode) '0o40755'
It would be safer to always add a os.chmod(0o777) for safety
os.chmod(0o777)
By default, the
/tmp/wiz
log folder is created with mode0o777
(https://docs.python.org/3/library/os.html#os.makedirs), but depending on the umask, it can mess up with the permissions:It would be safer to always add a
os.chmod(0o777)
for safety