Shortly after enabling CageFS on a server, we got a complaint from a customer that their site was throwing an error. I looked into their logs, and PHP was throwing "failed to open stream: No such file or directory" when trying to reference a file it needed (/home/chcc/public_html/config.php). Sure enough:
However:
Disabling CageFS for that user also didnt fix the problem, so Im doubtful its een related to CageFS in the first place. However, Id still like to be able to use the cagefs_enter_user tool to debug issues that will inevitably come up in the future, and this behavior doesnt make sense. Am I just misunderstanding something here?
Code:
root@srv01 [/home/chcc/public_html]# ls -l config.php -rwxr-xr-x 1 chcc chcc 495 Jun 30 10:53 config.php* root@srv01 [/home/chcc/public_html]# cagefs_enter_user chcc "ls config.php" cagefs_enter_user: ls config.php: No such file or directory root@srv01 [/home/chcc/public_html]#
Code:
root@srv01 [/home/chcc/public_html]# cagefs_enter_user chcc "ls .." cagefs_enter_user: ls ..: No such file or directory root@srv01 [/home/chcc/public_html]# cagefs_enter_user chcc "ls ." cagefs_enter_user: ls .: No such file or directory root@srv01 [/home/chcc/public_html]#
Comment