<div dir="ltr">Hi,<div><br></div><div style>Thanks for the info! That was the problem. I did some digging and found "NAME=root" in /etc/default/apt-cacher-ng on the old system. I added this line to the new system and it now starts on port 80.</div>
<div style><br></div><div style>Thanks!!</div><div style>Grant</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 2:03 PM, Eduard Bloch <span dir="ltr"><<a href="mailto:edi@gmx.de" target="_blank">edi@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hallo,<br>
* Grant Ridder [Wed, Apr 10 2013, 11:34:15AM]:<br>
<div class="im">> Hi,<br>
><br>
> I have an old instance of apt-cacher-np running and I am in the process of<br>
> configuring it on a newer machine. The old instance is running on port 80<br>
> and I would like to keep that in the new config to avoid changing all of my<br>
> VM's.<br>
><br>
> When I try to start the new instance on port 80, i get an error.<br>
> # service apt-cacher-ng start<br>
> * Starting apt-cacher-ng apt-cacher-ng<br>
><br>
> Couldn't bind<br>
> socket: Permission denied<br>
> Couldn't bind socket: Permission denied<br>
<br>
</div>That's correct. Please consult any Unix Networking manual and read about<br>
privileged ports. For a network daemon that supports this, it means that<br>
it has to be started as root and then use its effective UID internally.<br>
And ACNG currently doesn't do that.<br>
<br>
There are workarounds, of course. A crude one (run as root or change the<br>
UID of the system user "apt-cacher-ng" to 0 which makes it effectively<br>
root) and a less crude one (use the inetd bridge, see manual for<br>
details).<br>
<div class="im"><br>
> The old box is:<br>
> Ubuntu 10.04.4<br>
> apt-cacher-ng 0.4.6-1ubuntu1<br>
<br>
</div>Maybe that was configured with one of the tricks above. Check the user<br>
id in the process list.<br>
<br>
Regards,<br>
Eduard.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<mellum> Salz: das laeuft auf einem Tru64-System, auch von 1889 oder so... aber<br>
immerhin 64 bit :)<br>
</font></span></blockquote></div><br></div>