LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Can lsws check directory and php script permissions?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2011, 11:56 AM
linux_terror linux_terror is offline
New Member
 
Join Date: Jul 2011
Posts: 3
Default Can lsws check directory and php script permissions?

Hello,
I am currently trying to secure lsws in a shared environment and have used the Required Permission Mask and Restricted Permission Mask for static files to lock them into being served only if static files are between 444 and 644 permissions. My question is twofold, the first aspect pertaining to applying the mask to .php extension files. What I am trying to achieve is suPHP style permissions checking so that php files are only served at 444-644 perms, basically I would just need a way to apply the static masks to the .php extension. Is this possible? Second question is on directory permissions checking, is it possible to apply a restricted permission mask to directory permissions like suPHP does? e.g. - if the directory is 777 do not serve content out of it. Please let me know if anyone has a way to do this natively or if there is any alternate workaround.

Thanks in advance!
Reply With Quote
  #2  
Old 07-26-2011, 05:20 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Litespeed does not implement suphp like permission check, if you want, you can use suhosin.
Reply With Quote
  #3  
Old 07-27-2011, 07:19 AM
linux_terror linux_terror is offline
New Member
 
Join Date: Jul 2011
Posts: 3
Quote:
Originally Posted by mistwang View Post
Litespeed does not implement suphp like permission check, if you want, you can use suhosin.
Suhosins feature set does not include a facility to do this as far as I can see. Since you suggested suhosin I will ask, how were you thinking I could accomplish this with it?
Reply With Quote
  #4  
Old 07-27-2011, 12:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Sorry, I was wrong, not sure where I got the false impression.
We will add the script permission check in our to-do list.
Reply With Quote
  #5  
Old 07-28-2011, 07:33 AM
linux_terror linux_terror is offline
New Member
 
Join Date: Jul 2011
Posts: 3
Quote:
Originally Posted by mistwang View Post
Sorry, I was wrong, not sure where I got the false impression.
We will add the script permission check in our to-do list.
Excellent mistwang! Directory permissions checking would be a great thing as well if that can be done.

Thanks!
Reply With Quote
Reply

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

Forum Jump


All times are GMT -7. The time now is 05:35 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.