Go to your site administration on the frontn page and then users>permissions>assign system roles. If there are any teachers or students in there then remove them and only assign them the roles within the actual courses -this might well be why you have teachers there you don't want.
Roles and permissions
How can I assaign a teacher to a course
This discussion has been locked so you can no longer reply to it.