25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Existing User Groups as <strong>LSF</strong> User Groups<br />

Chapter 7<br />

Managing Users and User Groups<br />

User groups already defined in your operating system often reflect existing<br />

organizational relationships among users. It is natural to control computer<br />

resource access using these existing groups.<br />

You can specify existing UNIX user groups anywhere an <strong>LSF</strong> user group can<br />

be specified.<br />

How <strong>LSF</strong> recognizes UNIX user groups<br />

Requirements<br />

Only group members listed in the /etc/group file or the file group.byname<br />

NIS map are accepted. The user’s primary group as defined in the<br />

/etc/passwd file is ignored.<br />

The first time you specify a UNIX user group, <strong>LSF</strong> automatically creates an <strong>LSF</strong><br />

user group with that name, and the group membership is retrieved by<br />

getgrnam(3) on the master host at the time mbatchd starts. The membership<br />

of the group might be different from the one on another host. Once the <strong>LSF</strong><br />

user group is created, the corresponding UNIX user group might change, but<br />

the membership of the <strong>LSF</strong> user group is not updated until you reconfigure <strong>LSF</strong><br />

(badmin). To specify a UNIX user group that has the same name as a user, use<br />

a slash (/) immediately after the group name: group_name/.<br />

UNIX group definitions referenced by <strong>LSF</strong> configuration files must be uniform<br />

across all hosts in the cluster. Unexpected results can occur if the UNIX group<br />

definitions are not homogeneous across machines.<br />

How <strong>LSF</strong> resolves users and user groups with the same name<br />

If an individual user and a user group have the same name, <strong>LSF</strong> assumes that<br />

the name refers to the individual user. To specify the group name, append a<br />

slash (/) to the group name.<br />

For example, if you have both a user and a group named admin on your<br />

system, <strong>LSF</strong> interprets admin as the name of the user, and admin/ as the name<br />

of the group.<br />

Where to use existing user groups<br />

Existing user groups can be used in defining the following parameters in <strong>LSF</strong><br />

configuration files:<br />

◆ USERS in lsb.queues for authorized queue users<br />

◆ USER_NAME in lsb.users for user job slot limits<br />

◆ USER_SHARES (optional) in lsb.hosts for host partitions or in<br />

lsb.queues or lsb.users for queue fairshare policies<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 131

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!