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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Recommended umask permission setting

Reply
 
Thread Tools Display Modes
  #1  
Old 02-15-2012, 06:12 PM
thelunny thelunny is offline
Member
 
Join Date: Feb 2012
Posts: 13
Default Recommended umask permission setting

May I know what is the recommended umask value for a shared environment using LiteSpeed? I realise Litespeed is not able to read the docroot if the permission is anything below 755.

Can we set it to 700 but still allow Litespeed to read it? Can we load apache's mod_ruid2 module for this purpose?

What are the ways the improve file permission security for a shared environment?
Reply With Quote
  #2  
Old 02-15-2012, 07:20 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,288
you can set those permissions in lsws admin console:
Server->Security->File Access
Reply With Quote
  #3  
Old 02-15-2012, 08:12 PM
thelunny thelunny is offline
Member
 
Join Date: Feb 2012
Posts: 13
Good to have this as a feature on Litespeed. However, I tried setting the Required Permission Mask to 077, it doesn't work? I'm looking to only serve files of 700 permission.

Do I need to set the Restricted Permission Mask as well?

How does this Required Permission Mask and Restricted Permission Mask works? Couldn't catch much through the documentations. Mind explaining this a little on how Litespeed does the checks?

Thank you!
Reply With Quote
  #4  
Old 02-16-2012, 11:27 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,389
Required Permission Mask means only if file permission matches with permission mask defined (see (man 2 stat) for all values), file gets served.

Restricted Permission Mask means if file permission matches with permission mask defined, file can not be served.

For shared hosting environment, you can remove everything for others. i.e., have each file with 750(or 640) permission and owner:webserver ownership.
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 10:59 PM.



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