LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Permissions question

[ILUG] Permissions question

kae at verens.com kae at verens.com
Tue Jul 21 09:55:19 IST 2009


On 07/20/2009 09:24 PM, ollie at eillo.org wrote:
> Looks like this:
>
> --rw------- 1 www-data www-data  7925 2009-07-20 21:04 index.php
>
> Question 1: Does index.php need execute permissions? It seems to work. . .
>    

PHP scripts don't need execute scripts to run because you don't execute 
them. the web server interprets them.

Unless you're running them from the CLI, in which case, yes, you will 
need execute rights, unless you explicitly call the file like "php 
the_file.php" instead of "./the_file.php"
> I noted that hidden files are still owned by root:
>
> -rw-r--r--  1 root     root      730 2009-07-20 21:04 .htaccess
>
> Question 2: Should I leave it like this or change it to www-data?
>    

will they ever need to be edited by the web user? if not, you can leave 
them.

> Same for most folders in document root:
>
> drwxr-x---  5 eillo    psaserv  1,0K 2009-07-20 21:04 ../
>
> Question 3: Should I change their owner/group to www-data?
>    

again, if they don't need to be edited by the web user, then you can 
leave them.

kae



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell