Your umask is probably set to 0022 (common by default), not allowing write bits to be set for the group and others. You can use the umask function to change the current umask.
But why, why do you create a directory that can be written in the world? Not a good idea.
source share