Not sure what you mean by "better", but if you're trying to set drupal permissions remember the role permissions are stored in a table, so if you want to script something, you could simply write an appropriate update SQL query.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Salvatore De Paolis Sent: Tuesday, October 04, 2011 7:11 AM To: support@drupal.org Subject: [support] User permissions
Hi, I'm searching a better way to set/unset permission for a set of modules different from the admin panel. Is possible to achieve this using drush? Or maybe with drupal API?
best regards, Sal