L
L
littleguga2015-07-15 11:35:00
System administration
littleguga, 2015-07-15 11:35:00

How to set permissions correctly?

1. Made a symlink from /var/www to /home/myadmin/www
2. myadmin edits/deletes files in the /www folder
3. Host to /www and all subdirectories/files - myadmin:www-data
How to set permissions?
Now it costs 640, but there are many files that need to be changed through the web face (for example, php will have to be written to a text editor).
Solutions (which one to choose)?
1. Manually put on each file that can be changed 660 rights? (and if there are many such files)
1.1 What rights should be set on the download directory?
2. Put on the whole / www 660 right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
3vi1_0n3, 2015-07-15
@littleguga

> 1.1 What rights should I set on the download directory?
chmod -R 660 directory
Set other directories to 755 or 750. That is, you can recursively put 755 or 750 on /var/www, and then separately set 660 separately on the download directory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question