In Python, os.makedirs()
with 0777 mode can not give others write permission
在Python中 ,使用0777模式的os.makedirs()
无法给予其他人写入权限
The code is as follows
代码如下
$ python
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.makedirs("/tmp/test1/test2", 0777)
>>>
The created dirs are not having permiss