Changing permissions via chmod at runtime errors with “Operation not permitted”

前端 未结 4 1124
夕颜
夕颜 2021-02-12 13:18

When I use chmod() to change permissions at run time, it gives me the below message:

Warning: chmod() [function.chmod]: Operation not permitt

4条回答
  •  不思量自难忘°
    2021-02-12 13:43

    You, or most likely your sysadmin, will need to login as root and run the chown command: http://www.computerhope.com/unix/uchown.htm

    Through this command you will become the owner of the file.

    Or, you can be a member of a group that owns this file and then you can use chmod.

    But, talk with your sysadmin.

提交回复
热议问题