2021-08-31, 09:52 PM
Hello:
First of all I apologize for the long post but want to give as much information as possible.
I was running NextPVR on a windows10 laptop for quite a while and did not have any problem recording to the samba share.
I am quite new to the linux world, just starting to change my user pc's to linux
But now I am really having trouble setting file permissions to allow recording to my linux samba share. I know its a permission error from the log entries
The files do get created but nextpvr is unable to write to them.
I have researched for quite a few days now and have not found a solution for this. I am a rather new linux user and just starting to switch everything over from windows.
I am using ubuntu 20,04 server for my network shares using samba, and debian 11 on the laptop I am using to run NextPVR.
The relevent samba.conf entries on the server are
On the laptop pc I installed NextPVR as user test.
I have created a directory in the /home/test folder - remote-record and applied the shell script nextpvr-recording.sh to it.
I mount the samba share to that folder.
My /etc/fstab entry on the NextPVR laptop
The permissions I see on the samba server do not seem to be created as 775, they show 754. I have read about ACL in the samba server but I have not been able to implement them.
I am sure someone here is recording to a linux samba share from a linux pc and could possibly point me in the right direction.
Thank you.
First of all I apologize for the long post but want to give as much information as possible.
I was running NextPVR on a windows10 laptop for quite a while and did not have any problem recording to the samba share.
I am quite new to the linux world, just starting to change my user pc's to linux
But now I am really having trouble setting file permissions to allow recording to my linux samba share. I know its a permission error from the log entries
Code:
2021-08-31 12:23:57.907 [ERROR][13] Unexpected error writing to OutputSink: System.UnauthorizedAccessException: Access to the path '/home/test/remote-record/Manual Recordings/myshow_20210831_12001300-0-0-0-0.ts' is denied.
The files do get created but nextpvr is unable to write to them.
I have researched for quite a few days now and have not found a solution for this. I am a rather new linux user and just starting to switch everything over from windows.
I am using ubuntu 20,04 server for my network shares using samba, and debian 11 on the laptop I am using to run NextPVR.
The relevent samba.conf entries on the server are
Code:
[global]
server role = standalone server
unix password sync = yes
os level = 20
panic action = /usr/share/samba/panic-action %d
preferred master = yes
usershare allow guests = yes
public = yes
log file = /var/log/samba/log.%m
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
encrypt passwords = yes
default = global
obey pam restrictions = no
server string = %h server (Samba, Ubuntu)
logging = file
disable netbios = yes
pam password change = yes
passwd program = /usr/bin/passwd %u
null passwords = yes
max log size = 1000
map to guest = bad user
[NextPVR]
guest ok = yes
guest only = no
guest account = sambaguest
directory mode = 2775
create mode = 0775
force directory mode = 2775
force create mode = 0775
delete readonly = yes
path = /mnt/storage1/NextPVR
valid users = user1,user2,sambaguest,@sambashare
write list = user1,user2,sambaguest,@sambashare
writeable = yes
comment = NextPVR Recording Directory
On the laptop pc I installed NextPVR as user test.
I have created a directory in the /home/test folder - remote-record and applied the shell script nextpvr-recording.sh to it.
I mount the samba share to that folder.
My /etc/fstab entry on the NextPVR laptop
Code:
//10.53.44.200/NextPVR /home/test/remote-record cifs username=sambaguest,password=password,uid=nextpvr,gid=video,noperm 0 0
The permissions I see on the samba server do not seem to be created as 775, they show 754. I have read about ACL in the samba server but I have not been able to implement them.
I am sure someone here is recording to a linux samba share from a linux pc and could possibly point me in the right direction.
Thank you.