I just looked at the UN Charter but couldn't find the answer there. In the case of a country already a UN member, I believe that it involves a majority vote of the General Assembly. However, most of the their important decisions seem to be "upon the recommendation of the Security Council".