#!/bin/bash # Fix permissions and ownership. Should be done by root chmod -R g+w . chgrp -R record .