How to allow one user to write to another user's files?

Nautic

Verified User
Joined
Jun 17, 2008
Messages
46
Hi, I have a bit of an odd request.

In DA I have for example 4 users, I need the following setup:

Code:
User1 domain1.com /home/user1/public_html/
User1 shop.domain1.com /home/user1/public_html/shop

User2 domain2.com /home/user2/public_html/
User2 shop.domain2.com /home/user1/public_html/shop/user2

User3 domain3.com /home/user3/public_html/
User3 shop.domain3.com /home/user1/public_html/shop/user3

User4 domain4.com /home/user4/public_html/
User4 shop.domain4.com /home/user1/public_html/shop/user4

Now I tried doing a symlink, and received open_base errors. Does anyone have a solution to the above structure?
 
Not sure if this will solve the problem, but try disabling openbase for the domain.

1) Login as admin
2) PHP Safemode Configuration
3) Select site(s)
4) 'Disable Open BaseDir'
 
Probably will still have problems, depending on server setup, because user ownership won't match. If I recall correctly this was discussed recently in another thread, but I don't remember the details.

Jeff
 
1. To obtain desired, you need put all shared code (it can be only PHP sctripts) into independent directory
2. chown all files to apache
3. run php from apache user
4. add directory with shared code into open_basedir
5. symlink shared code directory to user homes.
 
Back
Top