tv_grab_file.xmltv softlink permissions problems - so close
Added by Tom Plums almost 6 years ago
Hello,
I'm close to having IPTV m3u with xml EPG setup. I'm running into a problem with my tv_grab_file.xmltv file. I've manually downloaded it via my provider and placed it into hts/.xmltv/
TVheadend is pointing to /usr/bin/tv_grab_file which is setup with cat ~/.xmltv/tv_grab_file.xmltv - all set a default.
I'm getting an error in TVheadend saying permission denied - see screengrab attached.
I believe there might be an issue with the xmltv setup not being under hts. Also I've read that my softlink may not be configured properly - although that's way over my linux understanding. Any suggestions on how to remove what's there and reinstall properly would be much appreciated. Here's what the link says.
[tomplums@Arch ~]$ ls -l .xmltv/
total 0
-rw-r--r-- 1 tomplums tomplums 0 Jan 6 16:03 tv_grab_file.xmltv
I'm not sure my hts folder is in the correct place. It's located in /home/hts/ previously /home/.hts/ - I renamed the directory so the tv_grab_file could see it. Again, not sure that's correct.
[tomplums@Arch ~]$ ls
Desktop hts listings Pictures Templates wget-log
Documents libc++ Music Public tv-grab-file xteve
Downloads libc++.tar.gz package-query pulseaudio Videos yaourt
[tomplums@Arch ~]$ cd hts
[tomplums@Arch hts]$ ls
tvheadend
I've spent quite a bit of time attempting to pull these listings into Tvheadend - feels like I'm close but my basic command knowledge is preventing it from working. Any guidance would be great.
Thanks,
Screenshot from 2019-01-06 16-10-25.png (145 KB) Screenshot from 2019-01-06 16-10-25.png | Permission denied |
Replies (5)
RE: tv_grab_file.xmltv softlink permissions problems - so close - Added by Joe User almost 6 years ago
That "ls" appears to be YOUR home directory (/home/tomplums) so it is showing hts as /home/tomplums/hts. The leading "/" is very important. Do you have a "/home/hts" directory?
Also the file is owned by "tomplums" and it would be best if it was owned by "hts".
Tvheadend runs as user "hts" and so "~/.xmltv/tv_grab_file.xmltv" would expand to "/home/hts/.xmltv/tv_grab_file.xmltv"
So,
The file should be "/home/hts/.xmltv/tv_grab_file.xmltv" and needs to be readable by the "hts" user.
RE: tv_grab_file.xmltv softlink permissions problems - so close - Added by Tom Plums almost 6 years ago
thanks for your reply.
I've managed to locate /home/hts - so yes that exists. It appears to be owned by the group 'video'
Within hts there was a broken soft link .xmltv/ directory which was attempting to link to /home/tomplums/xmltv/ - I created that folder and added tv_grab_file.xmltv
I added owner hts to both .xmltv/ and tv_grab_file.xmltv. Tvheadend is still giving permission denied even after a reboot.
Should I add group video to these directories too?
Thanks for the help - I'm a complete Arch novice - Mac OS for 20+ years
RE: tv_grab_file.xmltv softlink permissions problems - so close - Added by Joe User almost 6 years ago
Tom Plums wrote:
thanks for your reply.
I've managed to locate /home/hts - so yes that exists. It appears to be owned by the group 'video'
In a normal installation, the "hts" user is a member of the "video" group. But the group is only checked if the user is not the same, so it doesn't matter.
what is the output of:
ls -dl /home/hts /home/hts/.xmltv/ /home/hts/.xmltv/tv_grab_file.xmltv
Here is mine:
~# ls -dl /home/hts /home/hts/.xmltv/ /home/hts/.xmltv/tv_grab_file.xmltv drwxr-xr-x 9 hts hts 4096 Dec 20 13:18 /home/hts drwxr-xr-x 2 hts video 4096 Aug 25 12:20 /home/hts/.xmltv/ -rw-r--r-- 1 hts video 8920770 Jan 8 04:02 /home/hts/.xmltv/tv_grab_file.xmltv
RE: tv_grab_file.xmltv softlink permissions problems - so close - Added by Tom Plums almost 6 years ago
Using what you posted I tried to change permissions to match - still not quite right. chmod?
[root@Arch tomplums]# ls -dl /home/hts /home/hts/.xmltv/ /home/hts/.xmltv/tv_grab_file.xmltv
drwx------ 9 hts video 4096 Jan 6 21:54 /home/hts
drwxrwxrwx 2 hts video 4096 Jan 6 21:29 /home/hts/.xmltv/
-rwxrwxrwx 1 hts video 20222869 Jan 6 14:41 /home/hts/.xmltv/tv_grab_file.xmltv
I tried changing /home/hts with this - but not sure why it won't work,
[root@Arch tomplums]# sudo chown hts:hts -R /home/hts
chown: invalid group: ‘hts:hts’
Appreciate the help
RE: tv_grab_file.xmltv softlink permissions problems - so close - Added by Joe User almost 6 years ago
How did you install tvheadend? It appears you do not have an hts group, which is normally created by default when the the hts user is created.
But, it is pretty much irrelevant since tvheadend is (at least, should be) running as user hts and user hts has full access.
Maybe not running as hts??? - try "ps -ef |grep tvh" and see which user it is running as...
You can also try "chmod 755 /home/hts" to make sure the video group has access to read.