That necessarily means having more money than everyone else. If you don't, the people who do can and probably will make things very uncomfortable for you.
I now rent at cost, choosing to believe that it's better to help the people who live with me establish themselves and build financial safety.
are you saying you and them live under the same roof? i.e. they're your roommates?
I tend to be broader about community then many folks in the States. Imo, you live with the people in your local area, whether that's house, apartment building, or block.
Be very careful. If you are in the US, you might want to speak to a tax attorney.
The IRS treats property rented out at less than fair market value as a personal residence.
Your tenants may have to treat the difference as income, and you are not eligible for many of the usual deductions for investment property.
If you are going to make that business unprofitable then no one will do it. People won't sign up for the risk, cost, effort and frustrations of being a landlord with no upside.
While we're on the topic, why not prevent programmers from putting their salary up? After all software is essential to society these days?