LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2004-05-22 09:37:47


On Tue, 18 May 2004 amzm_at_[hidden] wrote:

> I add new user john in host1, and I run my program with it and
> with user john in host2. Everything ok. But now, when I try to use user
> peter in host2, LAM says: Permission denied. The .rhosts is right, I
> modified it. The permissions on anyprog are 777, 100% executable :D.

Sidenote: the .rhosts is not the issue here -- once you finish lamboot,
the .rhosts isn't used anymore.

> Somebody can give an explanation to this?
> Somebody has used LAM/MPI with different users in the same
> host or different hosts?

I'm guessing that this is a side-effect of the multi-user issue. The
mpirun(1) man page provides a lot of detail about working directories --
you should probably go read it. The main issue, I think, is that LAM will
try to change the cwd on each of the target machines to be the same as
what it is on the machine where you ran mpirun (unless you used -wd, or
an equivalent).

If it can't do that on n2 (because either the directory does not exist or
you don't have permissions to chdir there), it will chdir to the $HOME --
which, in this case, is the other user.

So can "anyprog" be found in the path on n2? Or is there an "anyprog"
entry in the $HOME on n2 that is not executable (e.g., perhaps a
directory)?

You may wish to make a process schema file and list the absolute location
of your executable on all three nodes, just to avoid ambiguity. For
example:

-----
n0 /home/yourhome/anyprog
n1 /home/peter/anyprog
n2 /home/john/anyprog
-----

Put that all in a text file (e.g., anyprog_schema.txt) and then mpirun it:

-----
shell$ mpirun anyprog_schema.txt
-----

and see if that works for you.

> Jeff: I use 6.5 because I will execute my program on existing LAN
> where I am not root, but I test the program in my home.

You should be able to install LAM completely under your $HOME directory --
or anywhere, for that matter. LAM does not need to be installed by a
system administrator. Indeed, I frequently have 5-6 copies of LAM
installed under my $HOME, depending on which version I'm developing and
testing in, etc. :-)

> Thanks in advance
>
>
> On 17 May 2004, at 18:16, Jeff Squyres wrote:
>
>> On Sat, 15 May 2004 amzm_at_[hidden] wrote:
>>
>>> I have installed lam/mpi 6.5.9 on Red Hat 8.0
>>
>> Mandatory sidenote: is there any chance that you can upgrade to LAM 7.0.x?
>> The 7 series offers a lot more functionality and performance tweaks. The
>> 6.5 series is no longer officially supported.
>>
>>> Two hosts: In host1 there is one user (peter), in host 2 there is
>>> two users (peter and john).
>>>
>>> I start lam session with:
>>> >lamboot -v lamboot.env
>>> [snipped]
>>> , all is correct too. But if I run the following doesn't run:
>>> >mpirun -v -np 3 anyprog
>>> 1956 anyprog on n0 (0)
>>> 10337 anyprog on n1
>>> mpirun: cannot start anyprog on n2: Permission denied
>>
>> Check three common problems:
>>
>> 1. Does the anyprog program exist on the third host?
>> 2. Can anyprog be found in the PATH on the third host?
>> 3. Does the anyprog program have correct (executable) permissions on the
>> third host?
>>
>> Based on the error message, I'm guessing #3 is the culprit.
>>
>> --
>> {+} Jeff Squyres
>> {+} jsquyres_at_[hidden]
>> {+} http://www.lam-mpi.org/
>> _______________________________________________
>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/