Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (9905 KB)
projadd(1M)Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Files | Attributes | See Also | Notes Name
Synopsis
projadd [-n] [-f filename] [-p projid [-o]] [-c comment]
[-U user [,user]... ] [-G group [,group]... ]
[ [-K name [=value [,value]...]...]] project
Descriptionprojadd adds a new project entry to the /etc/project file. If the files backend is being used for the project database, the new project is available for use immediately upon the completion of the projadd command. Options
The following options are supported: Operands
The following operands are supported: ExamplesExample 1 Adding a ProjectThe 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). Exit Status
The following exit values are returned: FilesAttributesSee attributes(5) for descriptions of the following attributes:
Invocation is evolving. Human readable output is unstable. See Alsoprojects(1), groupadd(1M), groupdel(1M), groupmod(1M), grpck(1M), projdel(1M), projmod(1M), useradd(1M), userdel(1M), usermod(1M), project(4), attributes(5), resource_controls(5) NotesIn case of an error, projadd prints an error message and exits with a non-zero status. projadd adds a project definition only on the local system. If a network name service such as NIS or LDAP is being used to supplement the local /etc/project file with additional entries, projadd cannot change information supplied by the network name service. Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Files | Attributes | See Also | Notes |
||||||