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

Setting Default User Quotas

Rather than manually creating user quotas, the easiest way of setting them is to copy an existing user. For example, now that we have assigned testuser's quotas, we could create another user, say realuser, and assign them the same quotas as testuser by running the following command:

hydrogen# edquota –p testuser realuser
hydrogen#

We will take this idea a step further and incorporate it into our standard user setup by modifying the createUser script that we built in Chapter 3, “User Administration.” This ensures that any new user will be created with all the correct quotas. Testuser's values will be used, and we'll modify the script by adding the lines shown in bold:

 hydrogen# more createUser <lines removed for ...

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