change script access mode