added script for checking write permissions of users