php chown exec() question!
I need to write an exec to change owner on some folders on my webserver. This is what I am working with.
exec('cd /xxxxx/xxxxxx/public_html/ && chown user.user * -R', $out);
G开发者_开发知识库ot to be honest Apache is not my bag so kind of stumbling in the dark. Basically I need to change all directories to user and not 99 as they currently are set to when they are created. The php chown() function has been disabled so Ive got to go old school.
Steve
You can't do it, as chown
(usually) requires root.
精彩评论