This is one of my questions for my exam ..We are not supposed to use mesg y/n for this but we should effectively avoid mesgs along with the problem of not being able to change groups.
How to disable messages in unix if mesg and chgrp not allowed?
permissions;terminal;tty;group