S
S
svd712014-02-10 18:18:43
linux
svd71, 2014-02-10 18:18:43

Permissions in Linux?

There is a set of php scripts deployed under apache2.
There is a user ivan who is a member of the www-data group.
All script files have permission 0664. But the user is informed that he does not have rights to this file. Where is the mistake?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2014-02-10
@svd71

I usually do this, maybe it will help you.

chown -R user:group /path/to/site
find /path/to/site -type d -print0 | xargs -0 chmod 775
find /path/to/site -type f -print0 | xargs -0 chmod 664

S
svd71, 2014-02-10
@svd71

Understood. It turns out that one radish created some of the files on its own behalf and did not change the owner. That's where the problem came from.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question