Skip to main content
Inspiring
September 28, 2012
Question

need informations about permission file

  • September 28, 2012
  • 1 reply
  • 656 views

hello, first excuse me for my english i speak french and im not very good in english..

i record (publish file mp4) from flash as3 with fmis 4.5.

Then i see all file have the permission 0660 when save in the folder in opt/adobe/fms/...

i change in server.xml the value of mask to 012 but the file is now to 0664

but i want all files have this permission 0755

how i can make this?

i need this because when i publish this file, after i use ffmpeg and when the file is encode i want to delete the original file with php.

Thanks a lot to help me...

    This topic has been closed for replies.

    1 reply

    Known Participant
    October 1, 2012

    Have you tried the mask of 022? - You probably need to update the folder permissions so they cascade down (check out the special mods on http://en.wikipedia.org/wiki/Chmod#Special_modes). Can you  have the user the ffmpeg process runs as, in the same group as the fms account? Also you only need 755 on a file to execute it as the group/all, or on a folder to browse it, so on the files 664 should be fine to read the file, but to save one back you need to make sure the directory permissions are correct.

    If i were you I would (and have done on my fms setup for a similar transcoding reason):

    1. Make sure the users are in the same group
    2. Update the mask to 007
    3. Update the folders / files to the correct permissions
      1. find <root video folder> -type d -exec chmod 2770 {} \;
      2. find <root video folder> -type f -name '*.mp4' -exec chown <account> {} \;