Set proper permissions