Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Run icecast2 as root?

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
sebastiannielsen



Joined: 11 Feb 2012
Posts: 1

PostPosted: Sun Feb 12, 2012 1:12 am    Post subject: Run icecast2 as root? Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 12, 2012 1:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber