I have a CGI script which creates a file in a directory on my machine, which has permissions set up for various users. The problem is, the Perl script won't create the file with all the permissions of the directory - it misses out on one user. If I manually create the file, it's given the exact permissions that the directory has for all users.