boinc application faild to run execlp(): permission denied

Message boards : Server programs : boinc application faild to run execlp(): permission denied
Message board moderation

To post messages, you must log in.

AuthorMessage
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 20299 - Posted: 16 Sep 2008, 18:26:59 UTC

Hello everyone,

My boinc application (for linux) has an execlp() function inside the code to call another perl file in the same folder for the task.

I tried many times and finally found out that this execlp() functino was permission denied which caused the whole application failed.

The permission problem still exists even after I tried 'chmod 777 /usr/bin/boingmr' in the client side and invoke './boincmgr' by root in client. It is obvious that when the application was downloaded from the server, it was assigned limited permission in the client side.

I am not sure whether I could assign executing permission for the application when it was downloaded from the server , or I have no way to execute execlp() but have to put all code inside one executable file in this case.

Any idea is well apprecaited. thanks!

Kunsheng
ID: 20299 · Report as offensive
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 20313 - Posted: 16 Sep 2008, 22:24:51 UTC - in response to Message 20299.  

This is fixed. You have to specify the file in execlp() to be executable , boinc doesn't take care of it if it is not an executable file ( files such as .pl, sh)
ID: 20313 · Report as offensive

Message boards : Server programs : boinc application faild to run execlp(): permission denied

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.