Results 1 to 6 of 6

Thread: Linux recording folder permissions

  1. #1
    Join Date
    Sep 2013
    Location
    USA
    Posts
    184

    Linux recording folder permissions

    Hi,

    I, and I assume others, would like to be able to have full permissions to the recording folders and their files. Right now the owner of the folder and the recording are nextpvr and no write permissions are granted for either folder or file. Can you make the file permissions 777 for the folders and files so we can run comskip and store the edl in the folder or compress them to MP4 and replace the original? Or publish the password for user nextpvr? What are your thoughts on this?

    JLM

  2. #2
    Join Date
    May 2006
    Location
    Canada
    Posts
    29,171
    For use with the deb installer I suggest you use the following permissions. This is from a script that I have in the next release of the installer.

    Code:
    #create the folder
    mkdir -p $1
    
    #allow access to video group
    chgrp video  $1
    
    #give video group write permission to folder
    chmod +775 $1
    
    # new file create with video group permission
    chmod g+s  $1
    
    # give write access to video group to new files in the folder
    setfacl -d -m g::rwX $1
    /home/userid/recordings will also have these settings

    Additionally to make management of these folders easier you can add your user id to the video group.

    Martin
    Last edited by mvallevand; 2019-08-06 at 07:13 PM.

  3. #3
    Join Date
    Sep 2013
    Location
    USA
    Posts
    184
    Ok. I'm going to have to research some of those commands! I have never used setfacl before. Thanks

    JLM

  4. #4
    Join Date
    May 2006
    Location
    Canada
    Posts
    29,171
    That one is important only if you want the video group members to have write access. Without it only the nextpvr user and root will have write access.

    Martin

  5. #5
    Join Date
    Sep 2013
    Location
    USA
    Posts
    184
    So yeah, that's the critical part for me. New files and folders need to have RW access for my login. I didn't know if that behavior was set by the application creating the file and folder or if it was a property of the folder they were created in. Or both/either. I guess it works just like windows. When it comes to permissions, linux is a whole 'nother animal so you can't assume.

    JLM

  6. #6
    Join Date
    May 2006
    Location
    Canada
    Posts
    29,171
    So with this script if you add your user ID to the video group you should be ok without sudo.

    Martin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •