restricting users

how can i make my users to not use particular commands in the network

like:wall.......

pl z help me regarding this

create a group that is allowed and add users allowed to that group and remove perms to others... or use ACLs