aMule Forum

English => aMule Help => Topic started by: gasparov on January 17, 2006, 10:09:45 AM

Title: cas and apache permissions
Post by: gasparov on January 17, 2006, 10:09:45 AM
Hi,
  I need help in setting up apache in order to make it able to reach /home/user/.aMule where the html generated by cas is.
I'm a apache newbie and this thing yesterday drove me nuts.As far as I know my apache user on Debian Stable is www-data and by default it cannot access to the home dir of different users.(like the one is running amule).,this means it cannot access the html file and the directories too.
A solution should be
Code: [Select]
dpkg-reconfigure adduserand setting system-wide readable home directories,is this secure?I mean..is there another way?
Title: Re: cas and apache permissions
Post by: Vollstrecker on January 17, 2006, 10:31:09 AM
No it isn't secure. I would suggest, to link the file from your home to your webserver dir and set the rights to worldreadable for this file only.
Title: Re: cas and apache permissions
Post by: gasparov on January 17, 2006, 11:54:20 AM
Hi,thanks for reply

I tried but my apache doesn't understand that it must follow symlinks:
in httpd.conf
Code: [Select]
 
                Options FollowSymLinks
                AllowOverride None
       
the soft link is in /var/www/amule/amulecas.html and is linked to /home/gas/.aMule/aMulexxxxx.html

apache errorlog:

Code: [Select]
[Tue Jan 17 11:04:23 2006] [error] [client 192.168.1.9] Symbolic link not allowed: /var/www/amule/amulecas.html
[Tue Jan 17 11:04:23 2006] [error] [client 192.168.1.9] Symbolic link not allowed: /var/www/amule/amulecas.html

This is one of the things that yesterday drove me nuts....
Title: Re: cas and apache permissions
Post by: gasparov on January 17, 2006, 12:36:39 PM
ok,
I'm getting stupid,I did a cron job to copy the cas generated file to a directory properly served by apache even if i'd like to know how the hell i can allow synlinks  ?(
Title: Re: cas and apache permissions
Post by: Vollstrecker on January 17, 2006, 12:38:23 PM
Maybe you don't gave apache the right the read the symlink or the target.