What are the different ways I can export permissions from a preconfigured Drupal site
This module(Export roles and permissions) allows you to exports roles and permission by generating a hook_install implementation


  This module allows you to generate a hook_install() implementation
  that creates the chosen roles with their associated permissions. The
  main purpose for creating this module was to transfer roles from a
  local dev machine to a remote stage/live server.