Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP-CLI + File Permissions

When you run a php script in the command line, does is execute with the read/write permissions of the current user or what?

like image 900
Brian Griffin Avatar asked Jul 15 '26 17:07

Brian Griffin


2 Answers

Yes, it does.

Yes, it runs with the permissions of the current user. Just like executing any other command-line program.

like image 40
Rob Kennedy Avatar answered Jul 18 '26 06:07

Rob Kennedy