Answer the question
In order to leave comments, you need to log in
How to change folder permissions on centos server?
Good day. The point is this. There is a created folder whose owner is user1, and apache is running from him and the site is working. User1 also has a user1 group. Inside this folder there is a nesting in several directories /var/www/user1/data/www
I created user2 and placed it in the user1 group, I also registered that it has a home directory /var/www/user1/data/www
However, I can’t to come on ftp, I receive an error "500 OOPS: cannot change directory". As far as I understand, that the problem is in the rights. By googling, I came to the conclusion that I need to allow all users of the user1 group to read and modify files and folders on the server. Hence the question, if I execute the command, chmod -R ug+rw /var/www/user1/data/www
can I normally use ftp after that, in order to change all sorts of css files through the usual fileZilla, etc.?
Answer the question
In order to leave comments, you need to log in
If you looked at the rules in links in more detail, you noticed that there are only rights to the file
it looks like this, ls -la
but it changes like this (potentially a very dangerous command and very fast, so always write the full path without using .
chown -R user2:user1 /var/www/user1/www
As far as I understand you have user user2 group user1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question