R
R
Roman Tatarinov2017-07-03 11:48:42
linux
Roman Tatarinov, 2017-07-03 11:48:42

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

2 answer(s)
S
Sanes, 2017-07-03
@Sanes

Change permissions
755->775
644->664
It's some kind of gesture

V
Victor Taran, 2017-07-03
@shambler81

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 question

Ask a Question

731 491 924 answers to any question