A
A
Alexander2016-02-12 12:43:33
ubuntu
Alexander, 2016-02-12 12:43:33

How to give another user full access to the user's www-data folder?

I immediately apologize that the question, of course, is a lamer one, but I have never administered Linux, but on occasion I urgently had to.
There is a server, remote root access via sftp and ssh is disabled on it. On the server, nginx is running from the www-data user. Accordingly, the folder with the site also belongs to www-data.
Tell the teapot how to correctly grant access rights to this folder via sftp to another user (for example, user) for reading / writing and not disrupt the work of scripts and other things?
Understood that it is necessary to dig towards groups, but not up to the end.
Thank you all in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2016-02-12
@Rsa97

Include the user user in the group www-data
usermod -aG www-data user

D
Dima Kim, 2016-02-12
@jalpy

I think it will be correct through ACL
or add two to one group and do chgrp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question