0

Hello,

What permissions should PHP files have on a unix/linux system?
Is 655 appropriate?
Many thanks in advance.

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by diafol
0

thank you for your response.

What about a typical login script? Should it be 755?

0

Depends what you're trying to do, but I assume 755 would be fine:

If you didn't know (just in case):

OWNER = first digit (7)
GROUP = second digit (5)
USER = last digit (5)

The numbers are made up from the sum of the following permissions: 4 [read] 2 [write] 1 [execute]

So 7 = read+write+execute = 4+2+1
5 = read+execute = 4+1 (note NO write permission)

The scripts need to be read/executed by users (browsers).

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.