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 

Icecast on Port 80 on Debian System

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



Joined: 21 Nov 2007
Posts: 30

PostPosted: Sun Mar 02, 2008 12:16 pm    Post subject: Icecast on Port 80 on Debian System Reply with quote

Hi guys,

I am using Icecast (very successfully) on Debian Etch Systems.

Now I had the idea to run Icecast on port 80, so listeners behind firewalls or on mobile phones will have no problems receiving the program.

But: On Debian only root ist allowed to open Port 80 (I think every port less 1024 needs root to open), so Icecast errors "Error opening socket".

Any ideas? I dont want to use tools like rinetd...

Thank you!
Regards, Kai
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 Mar 02, 2008 3:30 pm    Post subject: Reply with quote

The general unix approach is to start as root (so that the bind will work) and then drop privileges to become the user specified in <changeowner>. There are other possibilities that you could look into like giving certain capabilities to the icecast process but those tend to be system specific.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kai4711



Joined: 21 Nov 2007
Posts: 30

PostPosted: Sun Mar 02, 2008 3:48 pm    Post subject: Reply with quote

mhh okay... Smile

But I dont really know what to do...

Can you help me?

Thank you Karl!

Best regards,
Kai
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 Mar 02, 2008 4:28 pm    Post subject: Reply with quote

Assuming the general approach, start icecast as root with an icecast xml that has a changeowner set to some non-root user/group

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kai4711



Joined: 21 Nov 2007
Posts: 30

PostPosted: Sun Mar 02, 2008 5:29 pm    Post subject: Reply with quote

great! it works....

How to do it:

Edit: /etc/default/icecast2 and set user/group to root

Edit: /etc/icecast2/icecast.xml and uncomment changeowner.

Restart!
Done.

Kai
Back to top
View user's profile Send private message
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