Jayesh Dalal
2018-Oct-27 08:18 UTC
[Icecast] unable to set username/password for a mount point
Hello, I've icecast2 installed on Ubuntu 16.04 LTS and I can access it via http://localhost:8000 I followed this document to add authentication: https://icecast.org/docs/icecast-2.4.1/auth.html I added the following to /etc/icecast2/icecast.xml file: <mount> <mount-name>/example.ogg</mount-name> <authentication type="htpasswd"> <option name="filename" value="myauth"/> <option name="allow_duplicate_users" value="0"/> </authentication></mount> I restarted the icecast server as: sudo /etc/init.d/icecast2 restart 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 Can someone please advice whree is the database "myauth" written to, so I can verify that directory has the correct permissions? Thanks in advance. Jayesh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20181027/d1c1a9d8/attachment.html>
Robert Jeffares
2018-Oct-27 08:46 UTC
[Icecast] unable to set username/password for a mount point
do you have a steram mounted on the server called "example.ogg" If the mount don't exist the script will fail R On 27/10/18 9:18 PM, Jayesh Dalal wrote:> Hello, > > I've icecast2 installed on Ubuntu 16.04 LTS and I can access it via > http://localhost:8000 > > I followed this document to add authentication: > https://icecast.org/docs/icecast-2.4.1/auth.html > > I added the following to /etc/icecast2/icecast.xml file: > |<mount> | > |<mount-name>/example.ogg</mount-name> <authentication > type="htpasswd"> <option name="filename" value="myauth"/> <option > name="allow_duplicate_users" value="0"/> </authentication> </mount>| > > I restarted the icecast server as: > sudo /etc/init.d/icecast2 restart > 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 > > Can someone please advice whree is the database "myauth" written to, so I can verify that directory has the correct permissions? > > Thanks in advance. > > Jayesh > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20181027/2c73aa76/attachment.html>
Jayesh Dalal
2018-Oct-27 09:36 UTC
[Icecast] unable to set username/password for a mount point
Hi Robert, Thanks for the prompt response. I do have the stream mounted. This is the error I get on the interface (note I changed the example.ogg to 01.ogg as part of my testing): [image: ManageAuth.png] If the stream is not mounted, then mountpoint /01.ogg section disappears. I also made sure that the stream was still playing and had not ended. Jayesh On Sat, Oct 27, 2018 at 1:46 AM Robert Jeffares <jeffares.robert at gmail.com> wrote:> do you have a steram mounted on the server called "example.ogg" > > If the mount don't exist the script will fail > > R > On 27/10/18 9:18 PM, Jayesh Dalal wrote: > > Hello, > > I've icecast2 installed on Ubuntu 16.04 LTS and I can access it via > http://localhost:8000 > > I followed this document to add authentication: > https://icecast.org/docs/icecast-2.4.1/auth.html > > I added the following to /etc/icecast2/icecast.xml file: > <mount> > > <mount-name>/example.ogg</mount-name> > <authentication type="htpasswd"> > <option name="filename" value="myauth"/> > <option name="allow_duplicate_users" value="0"/> > </authentication></mount> > > I restarted the icecast server as: > sudo /etc/init.d/icecast2 restart > > 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 > > > Can someone please advice whree is the database "myauth" written to, so I can verify that directory has the correct permissions? > > > Thanks in advance. > > > Jayesh > > > _______________________________________________ > Icecast mailing listIcecast at xiph.orghttp://lists.xiph.org/mailman/listinfo/icecast > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20181027/46ca59a5/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: ManageAuth.png Type: image/png Size: 31340 bytes Desc: not available URL: <http://lists.xiph.org/pipermail/icecast/attachments/20181027/46ca59a5/attachment-0001.png>
Philipp Schafft
2018-Oct-27 19:38 UTC
[Icecast] unable to set username/password for a mount point
Good afternoon, On Sat, 2018-10-27 at 01:18 -0700, Jayesh Dalal wrote:> Hello, > > I've icecast2 installed on Ubuntu 16.04 LTS and I can access it via > http://localhost:8000 > > I followed this document to add authentication: > https://icecast.org/docs/icecast-2.4.1/auth.html > > I added the following to /etc/icecast2/icecast.xml file: > <mount> > > <mount-name>/example.ogg</mount-name> > <authentication type="htpasswd"> > <option name="filename" value="myauth"/> > <option name="allow_duplicate_users" value="0"/> > </authentication></mount> > > I restarted the icecast server as: > sudo /etc/init.d/icecast2 restartOk.> 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 > > Can someone please advice whree is the database "myauth" written to, > so I can verify that directory has the correct permissions?The database is relative to Icecast's current working directory. As that depends on what the init script does you can hard control that. Therefore I suggest to use a absolute path for it. e.g.: /etc/icecast/mylisteners I hope that helps! With best regards, -- Philipp Schafft (CEO/Geschäftsführer) Telephon: +49.3535 490 17 92 Löwenfelsen UG (haftungsbeschränkt) Registration number: Bickinger Straße 21 HRB 12308 CB 04916 Herzberg (Elster) VATIN/USt-ID: Germany DE305133015 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: <http://lists.xiph.org/pipermail/icecast/attachments/20181027/5e88b3ec/attachment.sig>