Reverting the permission of the data directory to previous value.