On Mon, 17 Jul 2006 17:38:45 -0400 "Crump, Mike" <Mike.Crump@xxxxxxxxxxxxxxxx> wrote:
I have created directories that have *PUBLIC *EXCLUDE and use an AUTL list for the authorized users. However, the file gets created with *PUBLIC *RWX and no AUTL. I'm assuming that the fopen runtime has a default authority setup but can't seem to find that documented anywhere. Does it have a default *PUBLIC authority and can I change it so that the authority is pulled from the directory that the file is being created in?
Some documentation on fopen that I have says Any created files will have mode "S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH" (0666), as modified by the process' umask value (see umask(2)). So maybe you want to use something other than fopen (I think open allows you to specify the permissions of created files) or set your umask to 022 (or whatever you prefer) before you create the file.