Have to/Has to : It's necessary to do sth.
It's necessary for you,- them, us, Mr. blanc- to be on time for school.
Need (Verb):
I need to talk to you right now.
You don't need to buy any bread.
I needn't buy any food./ I needn't help him.
Needn't ( Modal verb ): It isn't necessary to do sth.
don't/doesn't need to = don't/doesn't have to
The farmer needn't/doesn't need to/doesn't have to buy any eggs.
= It isn't necessary for the farmer to buy any eggs.
EXAMPLES:
-take photo-
Don't take photos in the military area.
You musn't take photos in the military area.
You can't take photos in the military zoon.
You arenot allowed to take photos in the military area.
It's illegal to take photos in this area.
It's againts to law to take photos in this area.
It's forbidden to take photos in this area.