HOWTO - Give user acces to other users data

mrleeny

New member
Joined
Oct 26, 2008
Messages
3
I want to give user1 (domain1.com) acces to user2 (domain2.com).

In httpd.conf of user2 i inserted the following line.

php_admin_value open_basedir /home/user1/:/tmp:/usr/local/lib/php/:/home/user2/domains/domain2.com/public_html/

After Restart of Apache, i still get the error:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect.

What goes wrong?

Regards,
Tom
 
Go to Admin level->PHP SafeMode Configuration and un-check open_basedir for user1 (domain1.com).
 
Hi SMTalk,

Thank you for you reply.

I have tried this allready, and it worked. But for safety reasons, i just want give access to a certain directory (not the complete directory).

This must be possible, but how?

Tom
 
Is there a way to include a directory from an other user to te open_basedir definition for that particular user?

I should expect that something should be posible with the Available tokens, while |OPEN_BASEDIR| is listed between them, but is not quite clear how to include the functionality.

Since a couple of years several websites are user the same directory of an other user. By a change in the administration panel the new security rules where set without notice.
 
To add acccess to <otherdomain> of <otherdomain> to <domain>

From the admin login

1 Click "Custom HTTPD Configurations"
2 Select <domain>
3 In the top text box add:

|?OPEN_BASEDIR_PATH=`HOME`/:/home/<otheruser>/domains/<otherdomain>/>|

4 Click "Save"
5 You can look in the bottom text area to see how the tokens were expanded and edit step 3 as necessary to get what you need.
 
Back
Top