Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Can you set the gid of the processes created by mpirun?
From: Ed Blosch (eblosch_at_[hidden])
Date: 2011-09-16 11:04:21


In my case the directories are actually the "tmp" directories created by the
job-scheduling system, but I think a wrapper script could chgrp and setguid
appropriately so that a process running group 1040 would effectively write
files with group ownership 650. Thanks for the clever idea.

-----Original Message-----
From: users-bounces_at_[hidden] [mailto:users-bounces_at_[hidden]] On
Behalf Of Reuti
Sent: Thursday, September 15, 2011 12:23 PM
To: Open MPI Users
Subject: Re: [OMPI users] Can you set the gid of the processes created by
mpirun?

Edwin, going back to this:

>> The mpirun command is invoked when the user's group is 'set group' to
group 650. When the rank 0 process creates files, they have group ownership
650. But the user's login group is group 1040. The child processes that get
started on other nodes run with group 1040, and the files they create have
group ownership 1040.

What about setting the set-guid flag for the directory? Created files
therein will inherit the group from the folder then (which has to be set to
the group in question of course).

-- Reuti
_______________________________________________
users mailing list
users_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/users