| View previous topic :: View next topic |
| Author |
Message |
kai4711
Joined: 21 Nov 2007 Posts: 30
|
Posted: Sun Mar 02, 2008 12:16 pm Post subject: Icecast on Port 80 on Debian System |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Mar 02, 2008 3:30 pm Post subject: |
|
|
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 |
|
 |
kai4711
Joined: 21 Nov 2007 Posts: 30
|
Posted: Sun Mar 02, 2008 3:48 pm Post subject: |
|
|
mhh okay...
But I dont really know what to do...
Can you help me?
Thank you Karl!
Best regards,
Kai |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Mar 02, 2008 4:28 pm Post subject: |
|
|
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 |
|
 |
kai4711
Joined: 21 Nov 2007 Posts: 30
|
Posted: Sun Mar 02, 2008 5:29 pm Post subject: |
|
|
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 |
|
 |
|