protected function changeOwner($path, $newOwner)
    {
        $ownerUid = fileowner($path);
        $ownerData = posix_getpwuid($ownerUid);
        $oldOwner = $ownerData['name'];
        if ($oldOwner !== $this->user) {
            if(!@chown($path, $newOwner)) {
                throw new CException(sprintf('Unable to change owner for %s, permission denied', $path));
            }
            echo sprintf("Changing owner for %s (%s => %s)... ", $path, $oldOwner, $newOwner);
            echo "done\n";
        }
    }