Project

General

Profile

Unable to create dir - Permission denied

Added by Fredrik Lidén about 12 years ago

Hello,

I've got a problem that i'm not able to solve so i hope someone could help me out.

When i try to add muxes i got this error:

Sep 13 11:41:52 settings: Unable to create dir "/home/xxxxx/.hts/tvheadend/dvbtransports/_dev_dvb_adapter0_Sundtek_DVB_C338000000": Permission denied

on all muxes. Then i am able to map channels but:

Sep 13 11:49:13 settings: Unable to create "/home/xxxxx/.hts/tvheadend/channels/12.tmp" - Permission denied

And when i reboot my system everything is gone.

Anyone that could help me ?


Replies (5)

RE: Unable to create dir - Permission denied - Added by Phill Lavender about 12 years ago

Are you logged in as Root or a User. Is your user part of the 'Video' groups ? See Here:

https://www.lonelycoder.com/redmine/projects/tvheadend/wiki/Install_and_initial_setup
Permission to access video adapters

In order for Tvheadend to control video adapters on the system it must be granted access to those devices. Most systems have a 'video' group with write access to the video adapter devices. When Tvheadend is started as a daemon (if Tvheadend is installed from a distribution package this is most likely the way it is) it will change its primary group to 'video' in order to access these groups. If your system is configured in a different way you can either change the group membership of the video adapters (/dev/dvb, etc) or reconfigure the Tvheadend start up parameters.
If Tvheadend is started without the '-f' argument it will not demonize nor change its primary UID/GID. Rather it will run with the permissions granted to the user executing the binary. If that's the case you must make sure the current user is granted with access to the video devices.

RE: Unable to create dir - Permission denied - Added by Fredrik Lidén about 12 years ago

Phill Lavender wrote:

Are you logged in as Root or a User. Is your user part of the 'Video' groups ? See Here:

https://www.lonelycoder.com/redmine/projects/tvheadend/wiki/Install_and_initial_setup
Permission to access video adapters

In order for Tvheadend to control video adapters on the system it must be granted access to those devices. Most systems have a 'video' group with write access to the video adapter devices. When Tvheadend is started as a daemon (if Tvheadend is installed from a distribution package this is most likely the way it is) it will change its primary group to 'video' in order to access these groups. If your system is configured in a different way you can either change the group membership of the video adapters (/dev/dvb, etc) or reconfigure the Tvheadend start up parameters.
If Tvheadend is started without the '-f' argument it will not demonize nor change its primary UID/GID. Rather it will run with the permissions granted to the user executing the binary. If that's the case you must make sure the current user is granted with access to the video devices.

The user (hts) is in video group and i've tried everything i ever could (i think).. still out of luck.

RE: Unable to create dir - Permission denied - Added by Adam Sutton about 12 years ago

This has nothing to do with the dvb device permissions, its purely related to the permissions of your configuration directories.

Please can you check the permissions (owner and mode) for /home/xxxxx/.hts/tvheadend/dvbtransports/ and all its parent directories to ensure that the user hts (or whoever you run TVH as) has permission to write to those.

Adam

RE: Unable to create dir - Permission denied - Added by Fredrik Lidén about 12 years ago

drwx------ 33 root root 4096 Sep 12 21:04 dvbtransports
drwx------ 2 root root 4096 Sep 12 20:58 dvbadapters
drwxrwxrwx 2 root root 4096 Sep 13 10:39 accesscontrol
rw-r--r- 1 xxxxxx xxxxxx 46 Sep 13 10:34 superuser

Is it that you mean?

RE: Unable to create dir - Permission denied - Added by Adam Sutton about 12 years ago

It is, and that would be wrong, unless you're running TVH as root. Most of those directories are owned by root with only user write permissions.

You need to ensure the configuration files/dirs are owned by the TVH user.

Adam

    (1-5/5)