Riba is any increase stipulated in advance on a loan, whatever it is called, together with certain unequal or delayed exchanges of the same kind of 'ribawi' goods such as gold, silver and staple foods. Interest on bank loans, credit cards and savings accounts falls under the first type. Profit from genuine trade, rent and risk-sharing partnerships is not riba.
Most contemporary scholars and Islamic fiqh bodies hold that a conventional interest-bearing mortgage involves riba and should be avoided, and they recommend Islamic home finance (such as murabaha, ijarah or diminishing partnership), saving, or renting instead. A minority, notably the European Council for Fatwa and Research, has allowed it for a family's main home in Muslim-minority countries under strict conditions of need. Anyone facing this decision should seek advice from a qualified scholar.
The Quran itself fixes the shares of close relatives: children, parents, spouses and, in some cases, siblings (4:11-12, 4:176). Before anything is shared out, the funeral costs, the deceased's debts and any valid bequest (up to one third, to non-heirs) are paid. What remains goes to the fixed-share heirs, and any balance to the nearest male relatives through the father's line (the 'asabah).
A will is strongly encouraged, and the Prophet ﷺ taught that a Muslim who has something to bequeath should not let even a couple of nights pass without having it written. A Muslim may leave up to one third of the estate to people who are not fixed heirs, or to charity; the rest is divided by the Quranic shares. A will is also where you record debts, trusts, guardianship wishes and instructions for an Islamic funeral.
Buying ordinary shares means owning part of a business, which is permitted in principle as long as the company's main activity is lawful. Most contemporary scholars allow investing in companies that pass Islamic screening, meaning no core business in alcohol, gambling, conventional banking and the like, with interest-based debt and income kept below set limits and any small impure income given to charity. Interest-bearing bonds, short selling and borrowing on interest to trade are generally not permitted.