Use linux command id to get the list of groups - supports nss and pam