Now that we've looked at some of the different tools that are available for administering the user base, let's create a script that will take us a step further by automating some of the creation steps. This is a common requirement for many companies, because not only does it ease the task of user creation, it also allows us to enforce a set of standards, such as setting a default password, forcing a specific environment or login name, and so forth. The one shown here, for example, performs the following functions:
Sets the user's initial password to the company default
Sets the password time-out values
Forces users to change their passwords at first login
Implements quotas for the user
It's worthwhile making a few points ...