Go to main content

Administering Resource Management in Oracle® Solaris 11.3

Exit Print View

Updated: March 2018
 
 

How to Define a Project and View the Current Project

Perform this procedure to add a project entry and then to alter that entry.

  1. Become root or assume an equivalent role.
  2. View the default /etc/project file on your system.
    # projects -l
    system
            projid : 0
            comment: ""
            users  : (none)
            groups : (none)
            attribs: 
    user.root
            projid : 1
            comment: ""
            users  : (none)
            groups : (none)
            attribs: 
    noproject
            projid : 2
            comment: ""
            users  : (none)
            groups : (none)
            attribs: 
    default
            projid : 3
            comment: ""
            users  : (none)
            groups : (none)
            attribs: 
    group.staff
            projid : 10
            comment: ""
            users  : (none)
            groups : (none)
            attribs: 
  3. Add a project.
    # projadd -U username -p project-id project-name
  4. View the /etc/project file again.
    # projects -l
    system
            projid : 0
            comment: ""
            users  : (none)
            groups : (none)
            attribs: 
    
    project-name
            projid : project-id
            comment: ""
            users  : username
            groups : (none)
            attribs: 
  5. Add a comment that describes the project in the comment field.
    # projmod -c 'project-comment' project-name
  6. View the changes in the /etc/project file.
    # projects -l
    system
            projid : 0
            comment: ""
            users  : (none)
            groups : (none)
            attribs: 
    …
    project-name
            projid : project-id
            comment: "project-comment"
            users  : username
            groups : (none)
            attribs: 

See Also

To bind projects, tasks, and processes to a pool, see Setting Pool Attributes and Binding to a Pool.