userA with www-data as its group. everytime i save file, userA is the owner instead of www-data.
would the code above be the recommended way? i dont want to chmod/chown everytime i edit files
That is because you have to become user www-data. Do this sudo -u www-data /bin/bash
Обсуждают сегодня