Nobody cares if you have a work permit or not when signing documents (opening bank account for the company, tax, social security, visa, work permit, etc.).
When a foreigner registers a new company and is the director from start, they usually don't have a work permit yet, so they do all these things without one, and often with a tourist visa.