O'Reilly logo

Solaris™ Operating Environment Boot Camp by Dominic Butler, David Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Custom Script

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required