[suPHP] suPHP and symlinks revisited

Vegard Svanberg vegard at svanberg.no
Tue Sep 2 10:35:30 CEST 2008


I've seen this issue been up for debate before, but browsing through the
archives, I'm a bit unsure what common practice and solutions are. 

Imagine the following scenario:

User 1: /home/user1/html (owned by "user1")
User 2: /home/user2/html (owned by "user2")
Common (shared) code: /usr/local/commoncode (owned by "commoncode")

Symlinks:

/home/user1/html/commoncode -> /usr/local/commoncode
/home/user2/html/commoncode -> /usr/local/commoncode

(I've tried owning the symlinks as "userX", "commoncode" and "root".)

suPHP 0.6.2 will execute this, 0.6.3 won't ("directory /home/user1/html
not owned by commoncode"). I can't see any immediate solutions to this.

Any suggestions?

-- 
Vegard Svanberg <vegard at svanberg.no> [*Takapa at IRC (EFnet)]




More information about the suPHP mailing list