I Need new sftp login details for developers but that is restricted to
ssh. They have to be able to edit and save files, also when the user makes changes I don't want the group changing to the users group once they make changes, if that makes sense.
You could use ACLs here.
Create your user with useradd. Then grant him the correct permission on
Verify that it worked bu using
Also for your group name request, you might want to flag the html directory with the setgid flag
You can create a user with
so /var/www/html will be the default home directory for user xyz , but if you are running apache and /var/www/htmlis home directory than this solution is not gonna work.
Instead you should create a user with any other home directory and restrict user with SUDO access for APACHE.
I will suggest you to use httpd-itk from epel to run each site by own user. And proftpd (mod_sftp) to gain access to the web root.