projadd [-n] [-f filename] [-p projid [-o]] [-c comment] [-U user[,user]...] [-G group[,group]...] [-K name[=value[,value]...]]... project
Specify comment as a text string. comment cannot contain a colon (:) or NEWLINE.
-K key1=value1 -K "key2=(value2a),(value2b)"
Resource control attributes use parentheses to specify values for a key. Because many user shells interpret parentheses as special characters, it is best to enclose an argument to -K that contains parentheses with double quotes, as shown above and in EXAMPLES, below. See resource_controls(5) for a description of the resource controls you can specify for a project.
Specify projid as a non-negative decimal integer below UID_MAX as defined in limits.h. projid defaults to the next available unique number above the highest number currently assigned. For example, if projids 100, 105, and 200 are assigned, the next default projid is 201. projids between 0-99 are reserved.
The following command creates the project salesaudit and sets the resource controls specified as arguments to the -K option.
projadd -p 111 -G sales,finance -c "Auditing Project" \ -K "rcap.max-rss=10GB" \ -K "process.max-file-size=(priv,50MB,deny)" \ -K "task.max-lwps=(priv,100,deny)" salesaudit
This command would produce the following entry in /etc/project:
salesaudit:111:Auditing Project::sales,finance: \ process.max-file-size=(priv,52428800,deny); \ rcap.max-rss=10737418240;task.max-lwps=(priv,100,deny)
Note that the preceding would appear as one line in /etc/project.
Comparing the projadd command and resulting output in /etc/project, note the effect of the scaling factor in the resource cap (rcap.max-rss=10GB) and the resource control (process.max-file-size=(priv,50MB,deny)). Modifiers, such as B, KB, and MB, and scaling factors are specified in resource_controls(5).
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|
|Interface Stability||See below.|
Invocation is evolving. Human readable output is unstable.
projadd adds a project definition only on the local system. If a network name service is being used to supplement the local /etc/project file with additional entries, projadd cannot change information supplied by the network name service.
|January 7, 2018||OmniOS|