I’m mainly a Windows user; I’ve used Linux on and off for years, but never enough to get a good feel for the “Linux Way” to solve a problem.
Here’s the problem du jour: I’ve installed an Apache HTTP server under CentOS and I’m using it to do some web development. This involves updating files in the document space, which is in its default location, /var/www/html. My user account does not have write permission for that directory, so I’m doing the work as root. Now, even though I’m a Linux ignoramus, I know enough to realize that this is a Bad Thing.
I’d like to change… something… so that my regular user account has write access to the part of the Apache document tree I need to use. Preferably, without giving other user accounts write access to it, and without giving my own account write access to anything else.
What’s the clean, customary, kosher Linux Way to do this?