<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>do you have a steram mounted on the server called "example.ogg"</p>
<p>If the mount don't exist the script will fail</p>
<p>R<br>
</p>
<div class="moz-cite-prefix">On 27/10/18 9:18 PM, Jayesh Dalal
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAK+VgVJ2zpejqjuTq2v8XF-V8XO=G8=oRjYKnDnXnL+MnfzYnA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>I've icecast2 installed on Ubuntu 16.04 LTS and I can
access it via <a href="http://localhost:8000"
target="_blank" moz-do-not-send="true">http://localhost:8000</a><br>
</div>
<div><br>
</div>
<div>I followed this document to add authentication:<br>
</div>
<div><a
href="https://icecast.org/docs/icecast-2.4.1/auth.html"
target="_blank" moz-do-not-send="true">https://icecast.org/docs/icecast-2.4.1/auth.html</a></div>
<div><br>
</div>
<div>I added the following to /etc/icecast2/icecast.xml file:<br>
</div>
<div>
<div class="gmail-m_-5936194478469772823gmail-highlight">
<div><code
class="gmail-m_-5936194478469772823gmail-language-xml"><span
class="gmail-m_-5936194478469772823gmail-nt"><mount></span>
</code></div>
<pre><code class="gmail-m_-5936194478469772823gmail-language-xml"> <span class="gmail-m_-5936194478469772823gmail-nt"><mount-name></span>/example.ogg<span class="gmail-m_-5936194478469772823gmail-nt"></mount-name></span>
<span class="gmail-m_-5936194478469772823gmail-nt"><authentication</span> <span class="gmail-m_-5936194478469772823gmail-na">type=</span><span class="gmail-m_-5936194478469772823gmail-s">"htpasswd"</span><span class="gmail-m_-5936194478469772823gmail-nt">></span>
<span class="gmail-m_-5936194478469772823gmail-nt"><option</span> <span class="gmail-m_-5936194478469772823gmail-na">name=</span><span class="gmail-m_-5936194478469772823gmail-s">"filename"</span> <span class="gmail-m_-5936194478469772823gmail-na">value=</span><span class="gmail-m_-5936194478469772823gmail-s">"myauth"</span><span class="gmail-m_-5936194478469772823gmail-nt">/></span>
<span class="gmail-m_-5936194478469772823gmail-nt"><option</span> <span class="gmail-m_-5936194478469772823gmail-na">name=</span><span class="gmail-m_-5936194478469772823gmail-s">"allow_duplicate_users"</span> <span class="gmail-m_-5936194478469772823gmail-na">value=</span><span class="gmail-m_-5936194478469772823gmail-s">"0"</span><span class="gmail-m_-5936194478469772823gmail-nt">/></span>
<span class="gmail-m_-5936194478469772823gmail-nt"></authentication></span>
<span class="gmail-m_-5936194478469772823gmail-nt"></mount></span></code>
I restarted the icecast server as:
sudo /etc/init.d/icecast2 restart
</pre>
<pre>I tried to add a username/password to the /example.ogg stream and I get the following message in the error.log file:
[2018-10-27 01:11:26] INFO admin/admin_handle_request Received admin command manageauth.xsl on mount "/example.ogg"
[2018-10-27 01:11:26] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth
[2018-10-27 01:11:26] WARN auth_htpasswd/htpasswd_adduser Failed to open authentication database "myauth": Permission denied
</pre>
<pre>Can someone please advice whree is the database "myauth" written to, so I can verify that directory has the correct permissions?
</pre>
<pre>Thanks in advance.
</pre>
<pre>Jayesh
</pre>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Icecast mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Icecast@xiph.org">Icecast@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/icecast">http://lists.xiph.org/mailman/listinfo/icecast</a>
</pre>
</blockquote>
</body>
</html>