25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

User Account Mapping<br />

Chapter 38<br />

Authentication<br />

<strong>LSF</strong> allows user account mapping across a non-uniform user name space.<br />

By default, <strong>LSF</strong> assumes uniform user accounts throughout the cluster. This<br />

means that jobs will be executed on any host with exactly the same user ID<br />

and user login name.<br />

The <strong>LSF</strong> administrator can disable user account mapping.<br />

For information about account mapping between clusters in a MultiCluster<br />

environment, see the Using <strong>Platform</strong> <strong>LSF</strong> MultiCluster.<br />

Configuring user-level account mapping (.lsfhosts)<br />

1 Set up a hidden .lsfhosts file in your home directory that tells what<br />

accounts to use when you send jobs to remote hosts and which remote<br />

users are allowed to run jobs under your local account. This is similar to<br />

the .rhosts file used by rcp, rlogin and rsh.<br />

2 Specify each line in the form:<br />

host_name user_name [send|recv]<br />

MultiCluster<br />

Example 1<br />

where send indicates that if you send a job to host host_name, then the<br />

account user_name should be used, and recv indicates that your local<br />

account is enabled to run jobs from user user_name on host host_name.<br />

If neither send nor recv are specified, your local account can both send<br />

jobs to and receive jobs from the account user_name on host_name.<br />

Lines beginning with ‘#’ are ignored. A plus sign (+) in the host_name or<br />

user_name field indicates any <strong>LSF</strong> host or user respectively.<br />

3 Set the permission on your .lsfhosts file to read/write only by the<br />

owner. Otherwise, your .lsfhosts file is silently ignored<br />

The cluster name can be substituted for host_name in a MultiCluster<br />

environment. For more information, see the Using <strong>Platform</strong> <strong>LSF</strong><br />

MultiCluster.<br />

For example, assume that hostB and hostA in your cluster do not share the<br />

same user name/user ID space. You have an account user1 on host hostB<br />

and an account ruser_1 on host hostA. You want to be able to submit jobs<br />

from hostB to run on hostA. Set up your .lsfhosts files as follows:<br />

On hostB:<br />

% cat ~user1/.lsfhosts<br />

hostA ruser_1 send<br />

On hostA:<br />

% cat ~ruser_1/.lsfhosts<br />

hostB user1 recv<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 503

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

Saved successfully!

Ooh no, something went wrong!