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

Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.