0

Sorry, but this is probably a terribly stupid question. I'm running a Linux2 instance on AWS. I have a number of sites running there, including a couple of wordpress sites.

One of the sites wants an FTP account so they can edit their wordpress files directly.

I want to create an FTP account and lock it to the site directory.

i've read a number of interesting answers here and on other sites (eg How to create a FTP user with specific /dir/ access only on a Centos / linux installation)

it looks like every answer says after adding a new user you :

chown –R <-username> /var/www/mydomain.com

my question is, is this changing the ownership of this directory? is this something i need to do? will this affect the permissions and access of other users?

Sorry for the probably silly question, still fairly new to Unix and don't want mess up a live website.

1

1 Answer 1

1

Have a look at groups : https://www.linux.com/learn/intro-to-linux/2017/12/how-manage-users-groups-linux . It basically allows you to set the rights of several users over files and directories.

More info : https://www.howtoforge.com/tutorial/linux-groups-command/ https://wiki.archlinux.org/index.php/users_and_groups

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .