Category: linux

Copying and Linux Permissions

Last time I wrote about using the [`--reference` flag](/cloning-linux-perms.html) for quickly replicating various aspects of permissions in Linux. Today's post is how to copy files and retain various attributes, like permissions, ownership, and SELinux context. First, a little background on how permissions are set when copying. ## How Permissions are...

Cloning Linux Permissions

Ever have that moment where you're working on your SELinux enabled webserver and you've put in a fancy new file into `/var/www/html` and the darn thing just won't show up properly, even though everything else is working? Then that sinking realization that you have to deal with three different aspects...