The origin:
/home/renew/public_html/remittance (for cp) or,
/home/renew/public_html/scheduled/file.php (for cron or http)
The destination folder:
/home/short/public_html/admin/remittance
The ACL setup:
Code: Select all
[short@vps ~]$ getfacl /home/short/public_html/admin/remittance/
getfacl: Removing leading '/' from absolute path names
# file: home/short/public_html/admin/remittance/
# owner: short
# group: short
user::rwx
group::rwx
other::r-x
default:user::rwx
default:user:renew:rwx
default:group::rwx
default:mask::rwx
default:other::r-x
Code: Select all
[renew@vps remittance]$ cp file_to_copy.html /home/short/public_html/admin/remittance/copied_file.html
cp: failed to access ‘/home/short/public_html/admin/remittance/copied_file.html’: Permission denied
Code: Select all
# user: renew
echo get_current_user() . '<br>';
$bytes = file_put_contents('/home/short/public_html/admin/remittance/copied_file.html', $data);
# outputs
get_current_user(): renew
Warning: file_put_contents(/home/short/public_html/admin/remittance/file_to_copy.html): failed to open stream: Permission denied in /home/renew/public_html/scheduled/renew.php on line 61
The result is always "permission denied" from both the command line and from PHP script (including cron).
Is there a way to debug the access control list? Looking for ideas on how to get this working.
Thanks for looking.
David