I once saw someone use a script that they had developed where. when they ran the user add command in the terminal it displayed a list one after another of the shares available on the server, they simply put a y or n next to each share name and the newly created user would get granted the access to the selected shares, I have seen several scripts similar to this but nothing exactly like this.

is this possible in ubuntu and is there ant guides out there that show how to do this as I cant seem to find one?

thanks
Rob