> The leading zero only exists in a particular string > representation. os.chmod() needs an integer, not a string. 0777 == 511. Thanks, Robert. What you said is exactly what I did not understand clearly, because I am just a beginner in Python programming. KB