开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜