[Solved] Slave Backend - Write Permissions
Posted: Wed May 17, 2017 8:23 pm
I'm trying to set up a slave backend. My master with 2 tuner cards is working correctly. Both slave and master are running fully up to date Ubuntu 16.04 and MythTV .28.
The master writes to the Default group which is set to /media/RAID/Media/TVShows.
This directory has the following permissions
files in the directory (I've been playing around) look like this:
tvgroup has the following members:
slave_myth was created so the slave could connect
The Master machine has a SAMBA share set up that looks like this:
On the slave machine, I have a file in /etc/samba called user which contains:
and a line in fstab which reads:
I have used slave_myth and it's password in the user file as well. the user 'server' occurs on both machines with the same password, btw.
From the command line on the slave machine I can create, copy and edit files in the TVRoot directory (the Default location for the master).
Now (finally) the problem.
If I run mythtv-setup on the slave and attempt to create a default group for storage of /media/TVRoot the program reports back that the directory is not writable.
Somewhere I read that I shouldn't set up a default for the slave, but I'm obviously a little lost here. What change(s) should I make to get this all working?
Thanks everyone,
Andrew
The master writes to the Default group which is set to /media/RAID/Media/TVShows.
This directory has the following permissions
Code: Select all
drwxr-xr-x 2 server tvgroup 4096 May 16 22:00 TVShows
Code: Select all
server@Server:~$ ls -l /media/RAID/Media/TVShows
total 16764
-rw-r--r-- 1 server tvgroup 3185927 Apr 25 07:42 mythconverg-1344-20170425074202.sql.gz
-rw-r--r-- 1 server tvgroup 4322731 May 2 07:43 mythconverg-1344-20170502074256.sql.gz
-rw-r--r-- 1 server tvgroup 4716654 May 9 07:42 mythconverg-1344-20170509074207.sql.gz
-rw-r--r-- 1 root root 4932816 May 16 07:42 mythconverg-1344-20170516074242.sql.gz
Code: Select all
server@Server:~$ grep tvgroup /etc/group
tvgroup:x:1001:root,server,mythtv,slave_myth
The Master machine has a SAMBA share set up that looks like this:
Code: Select all
[TVRecordings]
path = /media/RAID/Media/TVShows
valid users = root server mythtv slave_myth
write list = server root slave_myth mythtv
force user = server
read only = No
create mask = 0755
force directory mode = 0777
guest ok = Yes
Code: Select all
username=server
password=ThePass
Code: Select all
//192.168.40.28/TVRecordings /media/TVRoot cifs credentials=/etc/samba/user,noexec 0 0
From the command line on the slave machine I can create, copy and edit files in the TVRoot directory (the Default location for the master).
Now (finally) the problem.
If I run mythtv-setup on the slave and attempt to create a default group for storage of /media/TVRoot the program reports back that the directory is not writable.
Somewhere I read that I shouldn't set up a default for the slave, but I'm obviously a little lost here. What change(s) should I make to get this all working?
Thanks everyone,
Andrew