To manage user rights you don't need a script, you can use usermod, chown, chmod and so on. If you don't know how to work with those tools then a script will be of little to no use for you.
In that case you should first learn how those things on Linux work, for example reading this:
http://www.slackbook.org/beta/#id265551