http://qs321.pair.com?node_id=291814


in reply to How is the owner of a directory created with MKDIR determined?

mkdir $dir_name, 0777 unless -d $dir_name; gives 755 permissions with standard umask 22.

Comment: Oops - read question! 'pologies...