LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 06-16-2005, 07:04 PM   #1
murr4y
LQ Newbie
 
Registered: Jun 2005
Posts: 17

Rep: Reputation: 0
Giving users their own little virtual server...


Hi.

I want to run a webhotel with php and mysql.

My problem is that this script would allow people to browse the whole disk and highlight php files that may contain password for accessing MySQL and other "secret" stuff.

I've heard of systems which does so that any user can only access its own kind of filesystem. Like a whole virutal server dedicated to one user. That'd be great if it also prevents his/hers script to view any other files than the one he/she owns him/herself.

But I don't have any clue on how to do that. I've been messing around with suPHP and other things for a while now, and I can't seem to solve this problem.

If someone please could guide me in the right direction, or perhaps show me another way to solve this, I'd appreciate it very much!

Thanks in advance,
Heia Tufte.
 
Old 06-16-2005, 07:31 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
One idea would be to run, as you say, each user's (or all users') stuff in a virtual machine.

One such vm is UserMode Linux (which, to be fair, doesn't emulate a machine but only the OS (afaik)).

Another one is bochs (which emulates everything from bios and processor to... well, the kitchen sink).

I think UML is the better choice here--but other solutions might exist.

hth --Jonas
 
Old 06-17-2005, 07:26 AM   #3
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 600

Rep: Reputation: 49
You can either use virtual servers, for example this one: http://www.linuxvirtualserver.org/

Or try to set up chroot environments for each user. Search The Fine Google for help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Giving individual users editing rights for websites using Apache Server aakash Linux - General 1 05-26-2005 01:41 PM
Migrating machine users to virtual users p_penduko Linux - General 2 11-04-2004 07:37 AM
Giving users printing priority amfoster Linux - General 0 10-05-2004 06:35 PM
Giving users more rights (Admin) FatSteve Linux - Security 7 11-19-2003 06:37 AM
giving users permission to mount dai Linux - General 2 08-02-2002 02:12 AM


All times are GMT -5. The time now is 08:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration