Log in as user mark and
type projects to view the projects that are assigned to this user.

# su - mark
# projects
default

How to Validate the Contents of the /etc/project File

If no editing options are given, the projmod command validates
the contents of the project file.

To validate a NIS map, as superuser, type the following:

# ypcat project | projmod -f —

Note –

The ypcat project | projmod -f — command is not
yet implemented.

To check the syntax of the /etc/project file, type the
following:

# projmod -n

How to Obtain Project Membership Information

Use the id command with the -p flag to display
the current project membership of the invoking process.

$ id -p
uid=100(mark) gid=1(other) projid=3(default)

How to Create a New Task

Log in as a member of the destination project, booksite.

Create a new task in the booksite project by using the newtask command with the -v (verbose) option to obtain the system task ID.

machine% newtask -v -p booksite
16

The execution of newtask creates a new task in the specified
project, and places the user's default shell in this task.

View the current project membership of the
invoking process.

machine% id -p
uid=100(mark) gid=1(other) projid=4113(booksite)

The process is now a member of the new project.

How to Move a Running Process Into a New Task

This example shows how to associate a running process with a different task
and new project. To perform this action, you must either be superuser, or be the owner
of the process and be a member of the new project.