aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: cas and apache permissions  (Read 2966 times)

gasparov

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
cas and apache permissions
« 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?
« Last Edit: January 17, 2006, 10:17:28 AM by gasparov »
Logged
Q:   What's the difference between Microsoft Labs and the Boy Scouts of America?
A:   The Boy Scouts have adult supervision.

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1551
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: cas and apache permissions
« Reply #1 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.
Logged
Homefucking is killing prostitution

gasparov

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: cas and apache permissions
« Reply #2 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....
Logged
Q:   What's the difference between Microsoft Labs and the Boy Scouts of America?
A:   The Boy Scouts have adult supervision.

gasparov

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: cas and apache permissions
« Reply #3 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  ?(
Logged
Q:   What's the difference between Microsoft Labs and the Boy Scouts of America?
A:   The Boy Scouts have adult supervision.

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1551
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: cas and apache permissions
« Reply #4 on: January 17, 2006, 12:38:23 PM »

Maybe you don't gave apache the right the read the symlink or the target.
Logged
Homefucking is killing prostitution