NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 28 29 30 31 32 … 34 Next »
Linux recording folder permissions

 
  • 0 Vote(s) - 0 Average
Linux recording folder permissions
drmargarit
Offline

Member

Posts: 184
Threads: 49
Joined: Sep 2013
#1
2019-08-06, 06:42 PM
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
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,401
Threads: 963
Joined: May 2006
#2
2019-08-06, 07:09 PM (This post was last modified: 2019-08-06, 07:13 PM by mvallevand.)
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
drmargarit
Offline

Member

Posts: 184
Threads: 49
Joined: Sep 2013
#3
2019-08-06, 10:05 PM
Ok. I'm going to have to research some of those commands! I have never used setfacl before. Thanks

JLM
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,401
Threads: 963
Joined: May 2006
#4
2019-08-06, 10:15 PM
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
drmargarit
Offline

Member

Posts: 184
Threads: 49
Joined: Sep 2013
#5
2019-08-06, 10:46 PM
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
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,401
Threads: 963
Joined: May 2006
#6
2019-08-06, 10:51 PM
So with this script if you add your user ID to the video group you should be ok without sudo.

Martin
MCE_exile
Offline

Junior Member

Posts: 3
Threads: 0
Joined: Jan 2020
#7
2020-01-08, 12:39 AM
So, sorry to resurrect an old thread, but I just switched my HTPC to Linux with the end of Windows 7 support, and I'm trying to get it to record to my secondary hard drive. It records just fine to /home/userid/recordings, but when I try to go to my /media/userid/Storage/Users/Public/Videos on my secondary drive, it gives me a permissions error every time.

I tried using the command line tools you outlined above, but still no dice. The scripts outlined in the other forum post about permissions didn't seem to help either, although I think you said they are just the same commands in script form? I also tried changing the uid in Disks for when the drive mounts, but while that allowed me to trash instead of just delete files directly (which was still a plus), it's still throwing the error when I try to record to my secondary drive.

Am I overlooking something simple? I'm not brand new to Linux, but I'm not really an expert either. Thanks for your patience.  Huh
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,401
Threads: 963
Joined: May 2006
#8
2020-01-08, 02:31 AM
Given that it is loaded in /media I am not sure of the point of the userid but I am guessing by the folder names that this is an ntfs drive you are trying to mount. Is it a share or physical drive?

Martin
MCE_exile
Offline

Junior Member

Posts: 3
Threads: 0
Joined: Jan 2020
#9
2020-01-08, 02:59 AM
Yeah, it's an NTFS drive. I'm on a desktop, so it's internal/local.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,401
Threads: 963
Joined: May 2006
#10
2020-01-08, 03:14 AM
You need to create an fstab entry to automount it and assuming it gets mounted to a folder with specific goup rights make sure you add user nextpvr to that group. Consider using the gid for the video group.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  folder creation hazeleye65 3 249 2025-07-12, 02:11 PM
Last Post: mvallevand
  How to get Hauppage firmware running on Linux Mint Higgo 9 919 2025-07-09, 07:50 AM
Last Post: Higgo
  Extras Tuners Not Loading on NextPVR 3.1 Linux Install Siftingice 1 260 2025-07-03, 12:12 AM
Last Post: mvallevand
  Extras Tuners Not Loading on NextPVR 3.1 Linux Install Siftingice 0 169 2025-07-03, 12:02 AM
Last Post: Siftingice
  Linux Command Line To Initiate SchedulesDirect EPG Update LinuxDVR 1 508 2025-04-13, 06:35 PM
Last Post: mvallevand
  Linux install failed -- permission denied? FrogFan 4 1,009 2025-03-26, 12:39 AM
Last Post: FrogFan
  Recording Plyback Timeline Issue JeffH 11 1,246 2025-01-17, 03:20 PM
Last Post: mvallevand
  Is there a 'recommended' version/release of Linux? Bobthegoldfish 1 647 2024-12-24, 12:28 AM
Last Post: mvallevand
  Wake on suspend for recording flyingsubs 15 5,454 2024-12-03, 01:07 PM
Last Post: mvallevand
  NextPVR i.mjh.nz [Failed: Recording interrupted] Nzbaxterman 6 1,240 2024-10-29, 11:44 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode