Finally,I found a solution
I have created a role based on the teacher role that slightly modified on the main Moodle server.
This is not as clean to be able to select either the student role or the role teacher when registering students to shared course. at least it works.
Thank you for your aid