From daniel.pfenniger@obs.unige.ch Fri Feb 14 09:47:16 2003
Date: Fri, 14 Feb 2003 00:34:37 +0100
From: Daniel Pfenniger <daniel.pfenniger@obs.unige.ch>
To: Beowulf@beowulf.org
Subject: Re: Creating user accounts....

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Here is a set of very short scripts from Clemson Univ. allowing to 
manage a whole
cluster simply via rsh.   For example

1)  Duplicate sequentially the master node passwd file on all the 
cluster nodes
     via nfs:
     $  brsh rsync /net/master_node/etc/passwd  /etc

2) Add a user on all the nodes.
     $  brsh useradd -c comment -g group -p encrypted_pass -s shell -u 
uid MrBean

3) Check that all the nodes have the same set of rpm's:
     $ brsh "rpm -qa  | sort >  rpmqa"
     $ brsh "diff rpmqa /net/node_1/root/rpmqa" | more

4) A quick check of the state of the cluster:
     $ brsh uptime

Almost all the cluster administration can be done with brsh.

A simple modification of the script brsh (the "&") allows to lauch the
commands on the nodes without waiting for their completion.    This is
useful for starting almost simultaneously on all the nodes
time-consuming commands, but not recommanded when
accessing the same file on a single node via nfs .  Here is
the script that I call brshn:
-----------------------------------------------------------
#!/bin/csh
source /etc/brsh_setup.csh
foreach p ( `cat ${BRSHTAB}` )
        echo -n "$p "
        rsh $p "$*" &
end
------------------------------------------------------------

    Dan

>> What is the best way to create and manage user accounts on Beowulf,
>> Is there a way that you create account on Master node and all the 
>> slave node
>> will get information from Master node only.
>>
>> I was thinking of NIS, if you use NIS then still so you have to create
>> account on all the nodes.
>>

    [ Part 2, Audio/X-PN-REALAUDIO-PLUGIN  4.5KB. ]
    [ Unable to print this part. ]

