It's quite common thing for the mythtv backend or frontend programs to not have sufficient permissions to read or write some areas of disk. The details vary by operating system and distributor. The examples given here are for Linux.

+

It's quite common for the mythtv backend or frontend programs to not have sufficient permissions to read or write some areas of disk. The details vary by operating system and distributor. The examples given here are for Linux.

Some useful questions to ask when troubleshooting:

Some useful questions to ask when troubleshooting:

Line 33:

Line 33:

<pre>

<pre>

$ less /etc/exports

$ less /etc/exports

−

$ showmount -e

+

$ sudo showmount -e

</pre>

</pre>

* Do the UIDs and GIDs of frontend and backend users match up across your systems?

* Do the UIDs and GIDs of frontend and backend users match up across your systems?

Line 48:

Line 48:

On Linux, and possibly other UNIXes, check the permissions of the ''underlying mount point'':

On Linux, and possibly other UNIXes, check the permissions of the ''underlying mount point'':

<pre>

<pre>

−

$ grep mythtv /etc/fstab

+

$ grep media /etc/fstab

/dev/sdb1 /media/data ext4 defaults 0 2

/dev/sdb1 /media/data ext4 defaults 0 2

$ sudo umount /media/data

$ sudo umount /media/data

Line 54:

Line 54:

drwxr-xr-x 1 root root 4096 Jun 10 11:08 /media/data

drwxr-xr-x 1 root root 4096 Jun 10 11:08 /media/data

</pre>

</pre>

−

Also: check the permissions of each step in the path from /.

+

The fix is to make the mount point owned by the user that needs to write there.

+

<pre>

+

# chown mythtv:mythtv /media/data

+

# chmod g+w /media/data

+

# ls -ld /media/data

+

drwxrwxr-x 1 myhtv mythtv 4096 Jun 11 13:08 /media/data

+

</pre>

+

Also: check the permissions of each step in the mount path, from /.

+

+

Also: some distributions use the path /media as a location for automatically mounting removable storage.

Revision as of 12:43, 13 July 2012

Contents

Filesystem Permissions

A lot of problems people have with mythtv can be traced back to filesystem permission issues.

Common Issues

It's quite common for the mythtv backend or frontend programs to not have sufficient permissions to read or write some areas of disk. The details vary by operating system and distributor. The examples given here are for Linux.