The Jinn can be good or bad, some are known to be followers of Islam and other religions. Some actually became Muslims during the life time of the Prophet Muhammad (peace and blessings be upon him).
Satan is the king of the Jinn but has control of the bad ones not the good ones. Similar to Ghosts. They can live for hundreds of years.