title: Linux Set User and Group Ownership for Future Files and Folders
body: <p>I was changing user and group ownership using the following command:</p>
  
  <pre><code>sudo chown -R apache:www /var/www
  </code></pre>
  
  <p>However, I noticed that whenever I added a new file or folder to that directory, the owner would be my current username instead of the intended user, apache. How can I modify the above command so that all future folders and files will be owned by apache:www? Or do I need to use an extra command?</p>