Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Brian Barrett (brbarret_at_[hidden])
Date: 2006-02-08 11:19:45


On Feb 6, 2006, at 2:14 PM, Glenn Morris wrote:

> mpirun (v1.0.1) sets the umask to 0, and hence creates world-writable
> output files. Interestingly, adding the -d option to mpirun makes this
> problem go away. To reproduce:
>
> mpirun -np 1 --hostfile ./hostfile --mca pls_rsh_agent ssh ./a.out
>
> where a.out is compiled from:
>
> #include <sys/types.h>
> #include <sys/stat.h>
> #include <stdio.h>
> int main ()
> {
> printf("%.4o\n", umask( 022 ) );
> return 0;
> }

Wow, we definitely shouldn't be doing that. I've just committed a
fix for this problem on the development branch of our subversion
repository. The fix should be in the nightly builds in the next
couple of days, and will be part of the upcoming 1.0.2 release.

Thanks,

Brian

-- 
   Brian Barrett
   Open MPI developer
   http://www.open-mpi.org/