create script for access permission