Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

To save your changes and close the dialog box, click OK. Click Cancel to close the dialog box without saving changes.

Configuring User Access Lists From the Command Line

To configure user access lists from the command line, type the following command with appropriate options.

# qconf options

The following options are available:

  • qconf -au user-name[,...]access-list-name[,...]

    The -au option (add user) adds one or more users to the specified access lists.

  • qconf -Au filename

    The -Au option (add user access list from file) uses a configuration file, filename, to add an access list.

  • qconf -du user-name[,...] access-list-name [,...]

    The -du option (delete user) deletes one or more users from the specified access lists.

  • qconf -dul access-list-name[,...]

    The -dul option (delete user list) completely removes userset lists.

  • qconf -mu access-list-name

    The -mu option (modify user access list) modifies the specified access lists.

  • qconf -Mu filename

    The -Mu option (modify user access list from file) uses a configuration file, filename, to modify the specified access lists.

  • qconf -su access-list-name[,...]

    The -su option (show user access list) displays the specified access lists.

  • qconf -sul

    The -sul option (show user access lists) displays all access lists currently defined.

Defining Usersets As Projects and Departments

Usersets are also used to define grid engine system projects and departments. For details about projects, see Defining Projects.

Departments are used for the configuration of the functional policy and the override policy. Departments differ from access lists in that a user can be a member of only one department, whereas one user can be included in multiple access lists. For more details, see Configuring the Functional Policy and Configuring the Override Policy.

A Userset is identified as a department by the Department flag, which is shown in Figure 4-1 and Figure 4-2. A Userset can be defined as both a department and an access list at the same time. However, the restriction of only a single appearance by any user in any department applies.

Configuring Users

You must declare user names before you define the share-based, functional, or override policies for users. See Configuring Policy-Based Resource Management With QMON.

If you do not want to explicitly declare user names before you define policies, the grid engine system can automatically create users for you, based on predefined default values. The automatic creation of users can significantly reduce the administrative burden for sites with many users.

To have the system create users automatically, set the Enforce User parameter on the Cluster Settings dialog box to Auto. To set default values for automatically created users, specify values for the following Automatic User Defaults on the Cluster Settings dialog box:

  • Override Tickets

  • Functional Shares

  • Default Project

  • Delete Time

For more information about the cluster configuration, see Basic Cluster Configuration.

Configuring User Objects With QMON

On the QMON Main Control window, click the User Configuration button, and then click the User tab. The User tab looks like the following figure:

Dialog box titled User Configuration. Shows User tab with list
of users and User field. Shows Add, Modify, Delete, Tickets, Done, and Help buttons.

To add a new user, type a user name in the field above the User list, and then click Add or press the Return key.

To delete a user, select the user name in the User list, and then click Delete.

The Delete Time column is read-only. The column indicates the time at which automatically created users are to be deleted from the grid engine system. Zero indicates that the user will never be deleted.

You can assign a default project to each user. The default project is attached to each job that users submit, unless those users request another project to which they have access. For details about projects, see Defining Projects.

To assign a default project, select a user, and then click the Default Project column heading. A Project Selection dialog box appears.

Dialog box titled Select an Item. Shows Available Projects list
and Select a Project field. Shows OK, Cancel, and Help buttons.

Select a project for the highlighted user entry.

Click OK to assign the default project and close the dialog box. Click Cancel to close the dialog box without assigning the default project.

Configuring User Objects From the Command Line

To configure user objects from the command line, type the following command with appropriate options:

# qconf options

The following options are available:

  • qconf -auser

    The -auser option (add user) opens a template user configuration in an editor. See the user(5) man page. The editor is either the default vi editor or the editor specified by the EDITOR environment variable. After you save your changes and exit the editor, the changes are registered with sge_qmaster.

  • qconf -Auser filename

    The -Auser option (add user from file) parses the specified file and adds the user configuration.

    The file must have the format of the user configuration template.

  • qconf -duser user-name[,...]

    The -duser option (delete user) deletes one or more user objects.

  • qconf -muser user-name

    The -muser option (modify user) enables you to modify an existing user entry. The option loads the user configuration in an editor. The editor is either the default vi editor or the editor specified by the EDITOR environment variable. After you save your changes and exit the editor, the changes are registered with sge_qmaster.

  • qconf -Muser filename

    The -Muser option (modify user from file) parses the specified file and modifies the user configuration.

    The file must have the format of the user configuration template.

  • qconf -suser user-name

    The -suser option (show user) displays the configuration of the specified user.

  • qconf -suserl

    The -suserl option (show user list) displays a list of all currently defined users.

Previous Previous     Contents     Index     Next Next