[mythtv-users] mythtv-users Digest, Vol 185, Issue 6

Keith Pyle kpyle at austin.rr.com
Sun Aug 5 15:54:35 UTC 2018


On 08/04/18 13:46, Douglas Peale wrote:
>
> Up pops an error message "Unable to create file "/var/lib/mythtv/recordings//.test" - directory is not writable?
>
> I find that the owner of some of these directories is "root:root"
>
As others have noted, this is the "root" of your problem.  Make sure the 
owner and group match the user and group you use to run the backend 
process.  Preferably, run setup as that user too.  If you must use 
another account, put that account into the same group used for the 
backend process *and* make the directory group writable.
> Worse, each one of the new storage directories ends in '/', so now I get three error messages about not being able to create the
> file.

The trailing slash is not a problem.  On any UNIX derived OS, multiple 
slashes in a pathname are collapsed to only one slash when resolving the 
path.  For example,

/tmp$ ls -li /tmp/foo
62746124 -rw-r--r-- 1 me users 1360 2018-07-22 12:22 /tmp/foo
/tmp$ ls -li /tmp//foo
62746124 -rw-r--r-- 1 me users 1360 2018-07-22 12:22 /tmp//foo

The inode number (first field) proves that the ls command is looking at 
the same file, regardless of how many consecutive slashes are entered.  
This will be true for any Linux command since they all ultimately use 
the same Linux system calls to access files.

Keith



More information about the mythtv-users mailing list