Can't change user and group of the file via the php chown() and exec("chown ..."), the error is not permited, how to fix?
Hello. The problem is that when using chown() error Not Permited. Via the command exec("chown...") or system("chown ...") generally do not issue, but when checking vozvraschaetsya the result is false. How to solve this problem for 3 days over her bathing?
Server virtual machine on Ubuntu.
2 answers
You have exactly dostanochno privileges to chown?
Privilege to change the owner has a root. You need to run chown on its behalf through the mechanism of su or sudo.
Find more questions by tags LinuxPHP