| View previous topic :: View next topic |
| Author |
Message |
andyar33
Joined: 31 Jan 2009 Posts: 5
|
Posted: Fri Mar 06, 2009 12:54 pm Post subject: Problem adding new users with passwords |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Mar 06, 2009 1:33 pm Post subject: |
|
|
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 |
|
 |
andyar33
Joined: 31 Jan 2009 Posts: 5
|
Posted: Fri Mar 06, 2009 1:42 pm Post subject: Htpasswd |
|
|
| 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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Mar 06, 2009 8:08 pm Post subject: |
|
|
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 |
|
 |
andyar33
Joined: 31 Jan 2009 Posts: 5
|
Posted: Sat Mar 07, 2009 5:15 am Post subject: Solution |
|
|
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 |
|
 |
|