Permissions theorically working

Plus start arguments for the client, not tested yet.