Project

General

Profile

Bug #6196

Tvheaden 4.3 no root/sudo rights Ubuntu/Debian

Added by Philipp S over 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SAT>IP
Target version:
-
Start date:
2022-09-03
Due date:
% Done:

0%

Estimated time:
Found in version:
tvheadend_4.3-2027~ge3f4f222e~bullseye_amd64
Affected Versions:

Description

An official installation of Tvheadend via Doozer.io does not allow root/sudo rights.

Tested with Debian 10 and 11, Ubuntu 20.04 and 22.04

After an installation with sudo apt-get install tvheadend, TVH has root/sudo rights and can open port 554 for satip. After every restart this is not possible and the TVH says: satips: RTSP port 554 specified but no root perms, using 9983

If you open the console and enter sudo service tvheadend restart, port 554 can be used again.

I also have the option of installing an Ubuntu PPA from Michael Marley via Ubuntu.
This software package, whatever is kept up to date, works without restrictions.
Port 554 always works.

Could one of the developers take a look at this please?

History

#1

Updated by Oliver Schinagl over 1 year ago

What you are seeing seems correct, ports under 1024 require root permission to be used. I'm not sure if if this should even be done by a distro packager, or you the user who requires these elevated permissions. I think if you use systemd socket activation, you can system handle the socket creation; but I'm not aware if tvheadend plays nicely with systemd yet.

Do you have a really strong desire to use port 554 instead of 9983?

In any case, `setcap CAP_NET_BIND_SERVICE+ep /usr/bin/tvheadend` should fix it; but it also opens a security window.

If you run it in the upcomming docker container, you could publish the internal port 9983, as 554, docker would take care of the permission issue for you, and tvheadend would run happily as user in the container bound to non-privileged ports.

#2

Updated by Philipp S over 1 year ago

It is mandatory with port 554 for a SAT>IP server. Without 554 no TV with SAT> IP client works.

#3

Updated by Flole Systems over 1 year ago

Oliver Schinagl wrote:

I think if you use systemd socket activation, you can system handle the socket creation; but I'm not aware if tvheadend plays nicely with systemd yet.

Pretty sure it doesn't.

Also available in: Atom PDF