Thursday, August 2, 2018

linux - ProFTPd and www-data group

What I'm trying to do is create a ftp user that can update and modify files in an apache2 v2.4 (with www-data) web directory.




I have a single user: UserA (names changed to protect the guilty)
The folder is /var/www/vhosts; chowned to www-data:www-data
UserA has been addded to the www-data group.
The UserA's home directory is set to /var/www/vhosts



I have ProFTPd setup and running.
UserA connects fine.



The problem is ownership of the folders/files.

all files are set to 644 as normal
all folders are set to 755.



since UserA is not the owner, it falls under the group policies and files cannot be added, deleted, or modified because of the limitations.



Is there any way to masquerade UserA as www-data so they can perform the job?



Am I thinking of this the right way? is there another way to do it?
Thanks
The user connects via FTP to the web folder

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...