Ensure write permissions