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.
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
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).
users mailing list