Send generated file to another machine when script is ran by www-data

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a script that gets executed (I think by www-data) when listener.php gets a message from the internet (a paypal ipn message, by the way).



I need this script to generate a file (which it does, correctly) and place it on other locations (remote and local) without compromising the safety of those places.



For the local copy, I've given the destination folder these permissions:



 drwxrwxr-x 2 user1 www-data


But I find the user (I think it's www-data) cannot access local or remote folders (since it cannot execute scp either).



How this issue should be managed?



Thank you.







share|improve this question




















  • apparmor? selinux? That would be the usual (rightful) cause. You might look at their respective logs and see if it's related. But how can you deduce "since it cannot execute scp" => "cannot access local folders" ? It looks a bit of a shortcut.
    – A.B
    Nov 5 '17 at 12:20















up vote
0
down vote

favorite












I have a script that gets executed (I think by www-data) when listener.php gets a message from the internet (a paypal ipn message, by the way).



I need this script to generate a file (which it does, correctly) and place it on other locations (remote and local) without compromising the safety of those places.



For the local copy, I've given the destination folder these permissions:



 drwxrwxr-x 2 user1 www-data


But I find the user (I think it's www-data) cannot access local or remote folders (since it cannot execute scp either).



How this issue should be managed?



Thank you.







share|improve this question




















  • apparmor? selinux? That would be the usual (rightful) cause. You might look at their respective logs and see if it's related. But how can you deduce "since it cannot execute scp" => "cannot access local folders" ? It looks a bit of a shortcut.
    – A.B
    Nov 5 '17 at 12:20













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a script that gets executed (I think by www-data) when listener.php gets a message from the internet (a paypal ipn message, by the way).



I need this script to generate a file (which it does, correctly) and place it on other locations (remote and local) without compromising the safety of those places.



For the local copy, I've given the destination folder these permissions:



 drwxrwxr-x 2 user1 www-data


But I find the user (I think it's www-data) cannot access local or remote folders (since it cannot execute scp either).



How this issue should be managed?



Thank you.







share|improve this question












I have a script that gets executed (I think by www-data) when listener.php gets a message from the internet (a paypal ipn message, by the way).



I need this script to generate a file (which it does, correctly) and place it on other locations (remote and local) without compromising the safety of those places.



For the local copy, I've given the destination folder these permissions:



 drwxrwxr-x 2 user1 www-data


But I find the user (I think it's www-data) cannot access local or remote folders (since it cannot execute scp either).



How this issue should be managed?



Thank you.









share|improve this question











share|improve this question




share|improve this question










asked Nov 5 '17 at 12:12









Uxio

184




184











  • apparmor? selinux? That would be the usual (rightful) cause. You might look at their respective logs and see if it's related. But how can you deduce "since it cannot execute scp" => "cannot access local folders" ? It looks a bit of a shortcut.
    – A.B
    Nov 5 '17 at 12:20

















  • apparmor? selinux? That would be the usual (rightful) cause. You might look at their respective logs and see if it's related. But how can you deduce "since it cannot execute scp" => "cannot access local folders" ? It looks a bit of a shortcut.
    – A.B
    Nov 5 '17 at 12:20
















apparmor? selinux? That would be the usual (rightful) cause. You might look at their respective logs and see if it's related. But how can you deduce "since it cannot execute scp" => "cannot access local folders" ? It looks a bit of a shortcut.
– A.B
Nov 5 '17 at 12:20





apparmor? selinux? That would be the usual (rightful) cause. You might look at their respective logs and see if it's related. But how can you deduce "since it cannot execute scp" => "cannot access local folders" ? It looks a bit of a shortcut.
– A.B
Nov 5 '17 at 12:20
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402642%2fsend-generated-file-to-another-machine-when-script-is-ran-by-www-data%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402642%2fsend-generated-file-to-another-machine-when-script-is-ran-by-www-data%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?