title: How to force CURRENT directory permissions on all sub-directories in Linux?
body: <p>I'm often finding myself in a situation where I login to shell as root (I've already been told it's a bad practice) and copy new files to some directory served by apache.</p>
  
  <p>Since I'm logged in as root, the new files will have root set as owner, and different permissions than the files which are already present, and I'll need to change the permissions for Apache to be able to access the files. I am doing it manually.</p>
  
  <p>I am researching a better way of doing it. I was wondering if there is a way to somehow apply with a single command the permissions of the current folder to all it's sub-folders and files.</p>
  
  <p>Windows has such a feature, where you can "reset all files and folder permissions" to those of the parent folder.</p>