Go to main content

Administering Resource Management in Oracle® Solaris 11.4

Exit Print View

Updated: August 2018

Example: How to Add Attributes and Attribute Values to Projects

Use the projmod command with the –a and –K options to add values to a project attribute. If the attribute does not exist, it is created.

  1. Assume the root role.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  2. Add a task.max-lwps resource control attribute with no values in the project myproject.

    A task entering the project has only the system value for the attribute.

    $ projmod -a -K task.max-lwps myproject
  3. Add a value to task.max-lwps in the project myproject.

    The value consists of a privilege level, a threshold value, and an action associated with reaching the threshold.

    $ projmod -a -K "task.max-lwps=(priv,100,deny)" myproject
  4. (Optional) Add another value to the existing list of values by using the same options.

    Resource controls can have multiple values, separated by commas.

    $ projmod -a -K "task.max-lwps=(priv,1000,signal=KILL)" myproject

    The task.max-lwps entry now reads: