Can you (legally) unplug from the electric utility?

Can the utility or local authority require you to have an account?