Some contrib modules have drush commands, you may need to specify a user on the command line to get the correct permissions. Older versions of node_export module had this issue, and the drush command needed is:

drush --user=1 node-export
Topics