| View previous topic :: View next topic |
| Author |
Message |
sebastiannielsen
Joined: 11 Feb 2012 Posts: 1
|
Posted: Sun Feb 12, 2012 1:12 am Post subject: Run icecast2 as root? |
|
|
Hello. I have a really delicate problem of streaming sound from a application that is run via a terminal server on VNC, to a listening VNC client by having both a VNC client and a streaming sound client on a webpage.
However, icecast2 needs to run as root to this to work.
Have tried with multiple things:
changeowner set to user=root and group=root in config
Does not work.
root@kiosk-System-Product-Name:~# icecast2 -c /etc/icecast2/icecast.xml
Changed groupid to 0.
Changed userid to 0.
ERROR: You should not run icecast2 as root
Use the changeowner directive in the config file
root@kiosk-System-Product-Name:~#
Tried to create a user named "fakeroot" with uid=0.
Then changeowner set to user=fakeroot and group=fakeroot.
root@kiosk-System-Product-Name:~# icecast2 -c /etc/icecast2/icecast.xml
Changed groupid to 1001.
Changed userid to 0.
ERROR: You should not run icecast2 as root
Use the changeowner directive in the config file
root@kiosk-System-Product-Name:~#
Any ideas? Is there something I can do to say to icecast2: "Yes, I really really are aware of the security consequences of running icecast2 as root and still really want to do it"? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 12, 2012 1:38 am Post subject: |
|
|
There really hasn't been any reason for icecast to actually run normally with root rights other than to bind ports and set up a chroot at the beginning. nothing within icecast would need root unless you are modifying the code yourself to do other things.
You could always disable the check in main.c but I don't see that being an option at the moment.
karl. |
|
| Back to top |
|
 |
|