Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-28-2005, 09:55 PM   #1 (permalink)
 
Newb Techie

Join Date: Dec 2004

Posts: 45

spyro187

Default Folder lockdown

Is there program where I can type a list of folder into it or a config and once that is done anything in the folder can go down into the tree structure but not any higher?
__________________
http://www.DiscussElectronics.com
spyro187 is offline  
Old 11-28-2005, 11:03 PM   #2 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

sure, change ownership of top directory and make it different than the user that will be using the directory below:
example:
root owns /home/test
user owns /home/test/*-------user cant go higher than /home/test........make sure read,write,and exec for /home/test is turned off for the user in question

use chown to do that
use chmod to change the rwx(read write exec) privileges if you want even more control
horndude is offline  
Old 11-28-2005, 11:20 PM   #3 (permalink)
 
Newb Techie

Join Date: Dec 2004

Posts: 45

spyro187

Default

Ok that is the way I had it configured which keeps my main files safe. Here is the main issue. When I let someone host at www.site.com/username they can use php to go into someone else folder www.site.com/username2. I chown all subdirs so they can't go up but they can still go laterally. I give them all accounts because then my server would have to many individual accounts on it. Any Idea?
__________________
http://www.DiscussElectronics.com
spyro187 is offline  
Old 11-28-2005, 11:23 PM   #4 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

I think individual accounts is the only way to go, but im not a php expert by any stretch.
horndude is offline  
Old 11-28-2005, 11:31 PM   #5 (permalink)
 
Newb Techie

Join Date: Dec 2004

Posts: 45

spyro187

Default

thats what i was afraid of. Is there a good way to make virtual users with local file permissions? The problem with local users is that if I get a high number of users it will be hard to distibute load.
__________________
http://www.DiscussElectronics.com
spyro187 is offline  
Old 11-29-2005, 12:06 AM   #6 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

dont know to be honest

I do know this, web servers using php often have to deal with huge loads, hence most have lots of RAM and multiple CPU's. I would think a relatively speedy desktop PC could handle quite bit though.
horndude is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On