On 2020-01-09 06:16, Russell L. Harris wrote:
For development of a web pages, I installed Apache2 on another machine in the LAN so that I can FTP web pages from the development machine to the web server and view the pages from the development machine. But the installation of Apache2 on Buster serves documents from /var/www/html/, which is owned by root, so as a normal user I cannot FTP into that directory. The web server is not exposed outside the LAN, so security is not an issue. What is the proper approach?
It's a bit convoluted.I scp the files to a temp directory in my home directory on the server then ssh into the server, su to root, change the permissions and ownerships of the files then move them to /var/www/html/
mick -- Key ID 4BFEBB31