On Sep 14, 2011, at 1:23 PM, Blosch, Edwin L wrote: > >> Try -mca orte_launch_agent "sg N orted", where N is the desired group ID. > > There is a catch in the way the orted process is started. > > I get messages like this: > > bash: sg /home/install/openmpi/bin/(null) --daemonize -mca ess env -mca > orte_ess_jobid 3913285632 -mca orte_ess_vpid 9 -mca orte_ess_num_procs 10 > --hnp-uri 3913285632.0: No such file or directory > > > I think it is taking "sg" as the orted command and ignoring the groupid and > the orted arguments to sg. Probably some detail of how the orted process is > being created.
Probably an issue with the quotes for the multi-word option not getting handled correctly - I'll take a peek. Might be something we fixed later (I recall there being some issue with it at some point). > > >> >> Ed >> >> >> NAME >> sg - execute command as different group ID >> >> SYNOPSIS >> sg [-] [group [-c ] command] >> >> DESCRIPTION >> The sg command works similar to newgrp but accepts a command. The >> command will be executed with the /bin/sh shell. With most shells you >> may run sg from, you need to enclose multi-word commands in quotes. >> Another difference between newgrp and sg is that some shells treat >> newgrp specially, replacing themselves with a new instance of a shell >> that newgrp creates. This doesn't happen with sg, so upon exit from a >> sg command you are returned to your previous group ID. >> >> >> >> >> -----Original Message----- >> From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On >> Behalf Of Ralph Castain >> Sent: Wednesday, September 14, 2011 11:33 AM >> To: Open MPI Users >> Subject: Re: [OMPI users] EXTERNAL: Re: Can you set the gid of the processes >> created by mpirun? >> >> >> On Sep 14, 2011, at 9:39 AM, Blosch, Edwin L wrote: >> >>> Thanks, Ralph, >>> >>> I get the failure messages, unfortunately: >>> >>> setgid FAILED >>> setgid FAILED >>> setgid FAILED >>> >>> I actually had attempted to call setgid from within the application >>> previously, which looks similar to what you've done, but it failed. That >>> was when I initiated the post to the mailing list. My conclusion, a guess >>> really, was that Linux would not let me setgid from within my program >>> because I was not root. >> >> I was afraid of that - the documentation seemed to indicate that would be >> the case, but I figured it was worth a quick try. Sorry I can't be of help. >> >> >>> >>> >>> -----Original Message----- >>> From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On >>> Behalf Of Ralph Castain >>> Sent: Wednesday, September 14, 2011 8:15 AM >>> To: Open MPI Users >>> Subject: Re: [OMPI users] EXTERNAL: Re: Can you set the gid of the >>> processes created by mpirun? >>> >>> The attached should set the gid of the remote daemons (and their children) >>> to the gid of mpirun. No cmd line option or anything is required - it will >>> just always do it. >>> >>> Would you mind giving it a try? >>> >>> Please let me know if/how it works. >>> >>> _______________________________________________ >>> users mailing list >>> us...@open-mpi.org >>> http://www.open-mpi.org/mailman/listinfo.cgi/users >> >> >> _______________________________________________ >> users mailing list >> us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/users >> _______________________________________________ >> users mailing list >> us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/users > > > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users