I have an global software at my server, who should be able to push data in user-directories.
Lets say the user & group of it named “mySoftware”.
If I create an new virtualserver “domain1.com” and virtual-sub-server “files.domain1.com”, they are both have user and group : “user1”.
So “currently only manual” Solution is following:
-
chgrp mySoftware /home/domain1.com
-
chgrp mySoftware /home/domain1.com/public_html
-
chmod 774 /home/domain1.com/public_html
-
chgrp mySoftware /home/domain1.com/domains
-
chgrp mySoftware /home/domain1.com/domains/files.domain1.com
-
chgrp mySoftware /home/domain1.com/domains/files.domain1.com/public_html
-
chmod 774 /home/domain1.com/domains/files.domain1.com/public_html
So is this a good solution to do this? Or is there a better way to to grant “myShopware” access to those public_html folders of given users?
BTW: Is it recommended to use the setgid (chmod g+s…) for the public_html?