Look at how can, can't, must, mustn't, have to and don't have to are used in these examples.
You can put your shoes and coat over there.
You can't leave your bike there.
I must call the electrician and get that light fixed.
I mustn't forget the appointment.
You have to have a licence to drive a car.
You don't have to have a licence to cycle on the roads.