Python module os.chmod(file, 664) does not change the permission to rw-rw-r– but -w–wx—-
Python module os.chmod(file, 664) does not change the permission to rw-rw-r– but -w–wx—- Question: Recently I am using Python module os, when I tried to change the permission of a file, I did not get the expected result. For example, I intended to change the permission to rw-rw-r–, os.chmod(“/tmp/test_file”, 664) The ownership permission is actually …