Send generated file to another machine when script is ran by www-data
Clash 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.
permissions
add a comment |Â
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.
permissions
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
add a comment |Â
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.
permissions
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.
permissions
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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