473,396 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Advanced: security + virtual_hosts

Hi all,

Short question:
How can I set permissions to inhibit my hosting clients to get
access to others hosting clientes files?

Short question(Expanded)
I've got a php+mysql+apache+linux server running that provides
hosting. Everything works ok. The apache http server and mysql are
chrooted for security issues. The php files are stored in directories
as follows: /www/test0.com, /www/test1.com and so on). How can I avoid
a script stored in /www/test0.com/ to open a data file from
/www/test1.com? (e.g. fopen("../test1.com/index.html","w");
Ok, that would be easy to answer but the following limitations
changed it to a hard question to me.
-The owners of test0.com and test1.com are not users in my system.
So I can't use chown/chmod or setguid in apache, because every
directory is owned by an user called "nobody". So permissions wouldn't
work.
-open_basedir - this would be a great solution, I'd just need to
insert in every VirtualHost in http.conf open_basedir /www/test0.com,
/www/test1.com and so on. But I'm using mod_vdbh ("A Virtual Database
Hosting DSO module"), so my VirtualHosts are stored in a database. And
mod_vdbh doesn't have php_admin_value stored in database.
- php_admin_value in a .htaccess - it'd be a good solution, but
php manual says that it doesn't work.

Any bright solution?
Really sorry for this long post.
Thanks in advance.
Yusuke_and
Jul 17 '05 #1
2 1509
"yusuke" <yu********@yahoo.com> wrote in message
news:cd**************************@posting.google.c om...
Hi all,

Short question:
How can I set permissions to inhibit my hosting clients to get
access to others hosting clientes files?


As far as I know, you can't. That's why virtualization softwares like VMWare
exist.
Jul 17 '05 #2
Hi Chung Leong,

Thanks for replying, but I guess I didn't make myself clear.
How can I set permissions to inhibit my hosting clients to get
access to others hosting clientes files? My hosting clients will only execute php files. And when I mean
VirtualHost I'm talking about apache.
Thanks,
yusuke

As far as I know, you can't. That's why virtualization softwares like VMWare
exist.

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michael J. Wendell | last post by:
Hello, I am trying to debug an issue with sessions in my ASP 3.0 web application, which runs fine on WIN2K Pro and WINXP Pro, yet fails to function correctly on WIN2K Advanced Server. My actual...
1
by: Jim Hubbard | last post by:
I want to implement the same type of activeX restrictions in my browser application that the new SP2 for XP places in Internet Explorer. I have found 2 web pages dealing with this functionality...
3
by: Jim Hubbard | last post by:
I want to implement the same type of activeX restrictions in my browser application that the new SP2 for XP places in Internet Explorer. I have found 2 web pages dealing with this functionality...
10
by: John Wells | last post by:
Are there any books out there that are fairly current, but go into the more advanced aspects of Postgresql, such as internals and advanced programming? I'd rather avoid the whole intro to SQL with...
3
by: TechBoy | last post by:
I had a useracct called xxx123 I had set up. Now there is a problem in that **every single** .mdb file I open now on my PC (regardless of age of the file, location of the file, etc) now asks for...
5
by: Miles Keaton | last post by:
I'm switching to PostgreSQL from MySQL. Using the SAMs book called PostgreSQL which has been great to skim the surface of the differerences. I had never even heard of things like triggers,...
1
by: Parv | last post by:
I am trying to impersonate user to some other system using userName,domainName,password in C#. My Code is working fine if i am working on Windows 2000 professional after assigning current user "Act...
9
by: Brett Romero | last post by:
I'd like to know what you have read lately on c# that could be considered advanced and that you would recommend. I'm looking for in-depth rather than reference books. No starter books and...
0
by: YellowFin Announcements | last post by:
Security solutions provider EXTOL MSC Berhad has developed a neural network predictive analysis engine and is now working with Australian business intelligence company Yellowfin to develop a front...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.