Set permissions for restore script
Dealing with parameters