Hi Jiajun,
Our software has rsh deep into our basic code
infrastructure so it won't be easy to switch to ssh. As far as I
understand this problem is more related to uid being set on file exe of
rsh, which goes away when you simply copy the executable causing the
problem. I commented following code in file src/execwrappers.cpp and
now dmtcp_launch goes ahead and ran successfully. Is it something which
can be locally fixed and not cause any problem in checkpoint. Rsh into
another machine and running command is one time activity which will not
stay and hence I don't think this will cause any problem in checkpoint
functionality
// FIXME: SEE COMMENTS IN dmtcp_launch.cpp, rev. 1087; AND CHANGE THIS.
/*
i*f (dmtcp::Util::isSetuid(path)) {
if (dmtcp::Util::isScreen(path)) {
dmtcp::Util::setScreenDir();
}
// THIS NEXT LINE IS DANGEROUS. MOST setuid PROGRAMS CAN'T RUN
UNPRIVILEGED
dmtcp::Util::patchArgvIfSetuid(path, argv, newArgv);
// BUG: dmtcp::Util::patchArgvIfSetuid() DOES NOT SET newArgv WHEN
COPYING
// BINARY IN CODE RE-FACTORING FROM REVISION 911.
*filename = (*newArgv)[0];
} else
*/*
{
*filename = (char*)path;
*newArgv = (char**)argv;
}
Regards
Ankit
On 10/28/2014 09:29 AM, Jiajun Cao wrote:
Hi Ankit,
Currently DMTCP doesn't support rsh. If it's possible, could you try
ssh instead?
Best,
Jiajun
On Mon, Oct 27, 2014 at 8:37 PM, Kapil Arya <[email protected]
<mailto:[email protected]>> wrote:
Hi Jiajun,
Can you take a look at this error and suggest Ankit a solution?
Kapil
On Mon, Oct 27, 2014 at 3:25 AM, Ankit Garg <[email protected]
<mailto:[email protected]>> wrote:
Hi,
I am getting issue when code internally does rsh into
another machine and try to execute some command on it when ran
via dmtcp_launch. I am attaching the test with the logs and
screen logs. On analyses it seems that dmtcp_launch copies
rsh executable somewhere and then try to execute that which
results in following error.
*rcmd: socket: Permission denied*
I am stuck with this as our code does similar to above test.
Let me know where I am wrong in this.
Regards
Ankit
------------------------------------------------------------------------------
_______________________________________________
Dmtcp-forum mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum
------------------------------------------------------------------------------
_______________________________________________
Dmtcp-forum mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum