Apache Php permissions wih Symlinks (or php user permissions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mrdzone
Forum Newbie
Posts: 1
Joined: Sat Apr 11, 2009 8:25 pm

Apache Php permissions wih Symlinks (or php user permissions

Post by mrdzone »

tl;dr:
So my ultimate question is how can I give user2 permission to run index.php in user1's home directory?



OK here's the situation

I've got squirrelmail installed in
/home/user1/domain1/squirrelmail

It's accessed by domain1.com/squirrelamil

everything works fine and the user+group for all of /home/user1 is user1


now i have a symlink of /home/user2/domain1/squirrelmail -> /home/user1/domain1/squirrelmail

Which I am trying to access by webmail.domain1.com

now if I still have /home/user1/* set to user+group of user1 I can't access it from webmail.domain1.com but I can access it from domain1.com/squirrelmail

if I switch the user+group of /home/user1/* to user2 then I can access it from webmail.domain1.com

HOWEVER the index.php page comes up blank!!!

I don't care about accesing it from domain1.com/squirrelmail but I need to access it from webmail.domain1.com

Also I can't simply use httpd.conf to redirect webmail.domain1.com for various reasons even though I know this would make it easiest. Also switching the dns is out.

So my ultimate question is how can I give user2 permission to run index.php in user1's home directory?

Thanks

-Zone
Post Reply