开发者

how to change red5 server video file owner to apache user

开发者 https://www.devze.com 2023-01-14 04:48 出处:网络
I have a red5 server installed. It is working fine. I want to changes the default owner of the video file created by red5 server. Currently it is root.I want this to be changed to apache so that I can

I have a red5 server installed. It is working fine. I want to changes the default owner of the video file created by red5 server. Currently it is root.I want this to be changed to apache so that I can delete this file through php unlink开发者_运维问答 command.

Any help will be appreciated.


The bigbluebutton project does something similar wherein they run red5 as its own user, you could modify this information to use the apache user instead after installing red5.

  chown -R root.root /usr/share/red5
  chown -R apache:apache /usr/share/red5/log
  chmod 755 /usr/share/red5/log
  chgrp apache /usr/share/red5/webapps
  chmod 775 /usr/share/red5/webapps

You need to adjust the paths, groups, and users to fit your installation. I am assuming that your user and group are named "apache". The final part of this is to make sure you start red5 as the "apache" user; this will most likely require a change to your startup scripts.


If you have access to your server and it is linux, the command to change this is

chown name-of-new-owner:group-to-belong name-of-the-file

If you want to apply in many files inside a folder try -R after chown. You may need also a sudo in front of the chown.

Btw apache user and group is www-data.

0

精彩评论

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

关注公众号