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 

Problem adding new users with passwords

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



Joined: 31 Jan 2009
Posts: 5

PostPosted: Fri Mar 06, 2009 12:54 pm    Post subject: Problem adding new users with passwords Reply with quote

I am using Icecast 2.3.2 on Fedora 9 Linux and I have problem with adding new users with passwords. After changing icecast.xml in /etc (as described in icecast2 documentation) and trying to add new user I got a message in error log:

Code:
[2009-03-06  13:44:23] INFO admin/admin_handle_request Received admin command manageauth.xsl on mount "/stream.ogg"
[2009-03-06  13:44:23] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth
[2009-03-06  13:44:23] WARN auth_htpasswd/htpasswd_adduser Failed to open authentication database "myauth": Permission denied
[2009-03-06  13:44:23] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth
[2009-03-06  13:44:23] DBUG admin/admin_send_response Sending XSLT (/usr/share/icecast/admin/manageauth.xsl)
[2009-03-06  13:44:23] DBUG xslt/xslt_get_stylesheet Using cached sheet 1
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Mar 06, 2009 1:33 pm    Post subject: Reply with quote

Try using an absolute path for the htpasswd filename (instead of relying on the current directory), you may not be in the directory you think you are in.

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



Joined: 31 Jan 2009
Posts: 5

PostPosted: Fri Mar 06, 2009 1:42 pm    Post subject: Htpasswd Reply with quote

karlH wrote:
Try using an absolute path for the htpasswd filename (instead of relying on the current directory), you may not be in the directory you think you are in.

karl.


There is section from my icecast.xml:

Code:
<logdir>/var/log/icecast</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>
<pidfile>/var/run/icecast/icecast.pid</pidfile>


In which server's directory should I create .htpasswd ? In /var/www/html ?
I guess that it is: /usr/share/icecast/web ? Am I correct?

Second try:

Edited section from my icecast.xml:

Code:
<mount>
        <mount-name>/stream.ogg</mount-name>
        <authentication type="htpasswd">
                <option name="filename" value="/usr/share/icecast/web/myauth"/>
                <option name="allow_duplicate_users" value="0"/>
        </authentication>
</mount>


It has not worked.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Mar 06, 2009 8:08 pm    Post subject: Reply with quote

personally, from a security point of view, I wouldn't place the list of usernames and passwords in a file where people can just download it, so no I wouldn't place it in webroot. Where ever you decide to locate it, make sure the directory exists and that the user running icecast can write to that directory.

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



Joined: 31 Jan 2009
Posts: 5

PostPosted: Sat Mar 07, 2009 5:15 am    Post subject: Solution Reply with quote

1. Create access / password file (like htpasswd) in another directory, not accessible from external network (not in web enabled directory)
2. Change the path to that file in icecast configuration file
3. Chown the owner of file to icecast default user, set the file permissions to enable writing to file by icecast default user
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