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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Permission Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2004, 10:10 PM
DNSFusion DNSFusion is offline
New Member
 
Join Date: Jul 2004
Posts: 4
Default Permission Problems

Hi All,

I have just installed LSWS 1.5 Pro and am having a few issues with permissions.

I created a new virtual host in the admin panel and pointed its home directory to /home/lsws/www.mydomain.com/

The permissions on that folder and all folders below it are:
chmod 760
chown lsws.lsws

The permissions on the files within those folders is:
chmod 640
chown lsws.lsws

The user and group 'lsws' is who i am running the server as, but when i try to browse to one of the files, the web server tells me access is denied.
The only way to rectify this is to make the files chmod 644 which is world readable...

Any Ideas?
Reply With Quote
  #2  
Old 07-08-2004, 09:06 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It is a security feature.
Please read the section about "Strict static file Checking" under http://www.litespeedtech.com/security.html

and http://www.litespeedtech.com/docs/Se...PermissionMask

If you do not want to require world readable bit, set it to "040" to require group readable bit, or set to "000" not to require any thing.

Our take on this is, if you do not want to allow every one on your machine to be able to read a file, you should not allow every one in the world to be able to read it. Make sense? ;-)

George
Reply With Quote
  #3  
Old 07-08-2004, 09:11 AM
DNSFusion DNSFusion is offline
New Member
 
Join Date: Jul 2004
Posts: 4
I tried setting it to 040, but it killed the admin panel. None of the images would load, and none of the pop-up configuration windows would load either.

I'm guessing its because the rights on the files in the admin panel are something like 604?


The reason i would opt for 640 is because i don't want people on my machine to access it, but i would like the web server to control the access via .htaccess.
Reply With Quote
  #4  
Old 07-08-2004, 10:26 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
I'm guessing its because the rights on the files in the admin panel are something like 604?
Change them to 644 then, it is caused by the umask setting of "root" user.

Quote:
The reason i would opt for 640 is because i don't want people on my machine to access it, but i would like the web server to control the access via .htaccess.
Actually, as long as the permission of one of the parent directories set to 0750, other users can not access any directory/file under. It is not necessary to set 640 to all files at all.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Few Cpanel user problems dbMG Apache Migration/Compatibility 1 06-19-2007 07:06 AM
Context-level problems setting custom HTTP headers Marcus Install/Configuration 3 04-03-2007 09:35 PM
Permission Issue alberto General 1 03-18-2007 10:33 AM
VirtualHosts and WebInterface Admin problems aargoth Install/Configuration 4 02-21-2006 11:39 AM
stderr.log Dani Bug Reports 2 01-05-2006 07:58 AM


All times are GMT -7. The time now is 09:30 AM.



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