<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to AddingUser</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>Recent changes to AddingUser</description><atom:link href="https://sourceforge.net/p/kluster/wiki/AddingUser/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 21 Oct 2013 04:09:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/kluster/wiki/AddingUser/feed" rel="self" type="application/rss+xml"/><item><title>AddingUser modified by Daniel Povey</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -67,6 +67,16 @@

 Then they should be able to just type `ssh master` to get there.  You'll have to give users instructions about where they should put data if they have large quantities of it, e.g. in /export/ instead of their home directory.

+If you want to give this user root access via the `sudo` command from the machine `master`, you can do as follows (I do it this way because I prefer to use emacs as my editor; by default it will use `vi`):
+
+    export EDITOR=emacs
+    visudo
+    ## And edit the file /etc/sudoers by adding the line
+    dpovey ALL=(ALL) NOPASSWD:ALL
+    # note: you can also set it to something like:
+    # dpovey:ALL=(ALL:ALL) ALL
+    # which will require a password to execute sudo commands.
+

 Previous: [Attaching EBS storage](AttachingEBS)
 Next: [Things remaining to do] (ToDo)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Povey</dc:creator><pubDate>Mon, 21 Oct 2013 04:09:23 -0000</pubDate><guid>https://sourceforge.netdd5d1a3ddedcbb08a39225725e8b24551ac4f44d</guid></item><item><title>AddingUser modified by Daniel Povey</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -4,17 +4,17 @@

 In order to add a user you have to be on `master`.  Either type `kl-sshmaster` from your local machine, or `ssh master` from one of the other machines.

-For non-system users and their groups we will start from user-id 1000.  This is both for traditional reasons and because NIS will with its default configuration only sync users with this value or greater userids.  Everyone on this cluster is a close collaborator, so we'll all put them in the same group, `users`.  Add the following line to the currently empty file /var/yp/ypfiles/group:
+For non-system users and their groups we will start from user-id 1001 (I'm skipping 1000 as newer Debian images seem to already have a user with that userid).  Starting from around 1000 is both for traditional reasons and because NIS, as we have configured it, only transmit password information for users with userid at least 1000.  Everyone on this cluster is a close collaborator, so we'll all put them in the same group, `users`.  Add the following line to the currently empty file /var/yp/ypfiles/group:

     users:!:2000:

 I decided to start the GIDs from 2000 just to be different from the userids, to reduce confusion.  Now, suppose the user is `dpovey`.  We'll add a line to the currently empty file /var/yp/ypfiles/passwd, reading something like the following:

-    dpovey::1000:2000:Daniel Povey, dpovey@gmail.com:/home/dpovey:/bin/bash
+    dpovey::1001:2000:Daniel Povey, dpovey@gmail.com:/home/dpovey:/bin/bash

 The format is, `Username:Password-hash:Userid:Group-id:Name,Office:Homedir:Shell`.  Next time you add a user you'll likely increment the user-id by one, e.g. you'll add a line like:

-    dvader::1001:2000:Darth Vader, dvader@empire.gov:/home/dvader:/bin/bash
+    dvader::1002:2000:Darth Vader, dvader@empire.gov:/home/dvader:/bin/bash

 This is assuming Darth Vader prefers bash as his shell-- since he is very old, this is not a sure bet, he might prefer a c-based shell such as tcsh.  But he can always change it later using the command `ypchsh` once his account is set up.  You should also decide where to put the user's home directory.  It has to be somewhere that is exported via NFS.  I decided to put it on the directory /mnt/home1, on m1-01.  So I added the following line to /var/yp/ypfiles/auto.home:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Povey</dc:creator><pubDate>Tue, 08 Oct 2013 18:13:42 -0000</pubDate><guid>https://sourceforge.neta4310c043fcdf590056d27a3ba806950eaf65c98</guid></item><item><title>WikiPage AddingUser modified by Daniel Povey</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -69,5 +69,5 @@

 Previous: [Attaching EBS storage](AttachingEBS)
-Next: [??] (??)
+Next: [Things remaining to do] (ToDo)
 Up: [Kluster Wiki](Home)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Povey</dc:creator><pubDate>Mon, 25 Mar 2013 20:43:33 -0000</pubDate><guid>https://sourceforge.netc8ba80de8f91bd3292d5bb9472317d8f87318857</guid></item><item><title>WikiPage AddingUser modified by Daniel Povey</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -16,29 +16,37 @@

     dvader::1001:2000:Darth Vader, dvader@empire.gov:/home/dvader:/bin/bash

-This is assuming Darth Vader prefers bash as his shell-- since he is very old, this is not a sure bet, he might prefer a c-based shell such as tcsh.  But he can always change it later using the command `ypchsh` once his account is set up.  You should also decide where to put the user's home directory.  It has to be somewhere that is exported via NFS.  I decided to put it on the directory /mnt/home1, on master.  So I added the following line to /var/yp/ypfiles/auto.home:
+This is assuming Darth Vader prefers bash as his shell-- since he is very old, this is not a sure bet, he might prefer a c-based shell such as tcsh.  But he can always change it later using the command `ypchsh` once his account is set up.  You should also decide where to put the user's home directory.  It has to be somewhere that is exported via NFS.  I decided to put it on the directory /mnt/home1, on m1-01.  So I added the following line to /var/yp/ypfiles/auto.home:

-    dpovey master:/mnt/home1/dpovey
+    :::text
+    dpovey m1-01:/mnt/home1/dpovey

 At this point none of the changes you made in /var/yp/ypfiles will have propagated: if you type `id dpovey` it will give an error, meaning the user does not exist, and if you do `ypcat -k auto.home` the output is empty.  You have to do:

+    :::text
     cd /var/yp
     make

-which will cause NIS to update its databases with the changed information.  The user will likely need a password.  Setting this is done with the program `yppasswd` if you are using NIS.  This requires a root password to be set up, so just this first time, set up a root password using the command `passwd`.  Next, change the password of the user, typing `yppasswd dpovey`:
+which will cause NIS to update its databases with the changed information.  The user will likely need a password.  Setting this is done with the program `yppasswd` if you are using NIS:  This requires a root password to be set up, so just this first time, set up a root password using the command

+    :::text
+    passwd
+
+Next, change the password of the user, typing `yppasswd dpovey`:
+
+    :::text
     # yppasswd dpovey
     Changing NIS account information for dpovey on master.
     Please enter root password:
     Changing NIS password for dpovey on master.
     Please enter new password:
     Please retype new password:
-
+    
     The NIS password has been changed on master.

-Look carefully at the output: on failure it will say `The NIS password has not been changed`, which superficially looks similar.  Next, you need to set up the user's home directory.  The `ssh` part here is not really necessarily in our example since we're just ssh-ing to ourself, but if the home directory is on a different host it might be needed:
+Look carefully at the output: on failure it will say `The NIS password has not been changed`, which superficially looks similar.  Next, you need to set up the user's home directory:

-    ssh master cp -r -T /etc/skel /mnt/home1/dpovey
+    ssh m1-01 cp -r -T /etc/skel /mnt/home1/dpovey
     chown -R dpovey:users /home/dpovey

 If the `chown` command says something like `no such user` then something went wrong setting or propagating the password or group information: check `/var/yp/ypfiles/password` and `/var/yp/ypfiles/group`, do `make` in `/var/yp`, again, and check the NIS maps with `ypcat -k passwd.byname` and `ypcat -k group`.  Also check that the files /etc/passwd and /etc/group have the crucial last lines with the "+", that pull in the NIS maps, and that your userid and group-id are no less than the MINUID and MINGID in /var/yp/Makefile. 
@@ -50,7 +58,7 @@
     touch foo; rm foo
     ssh master

-and then enter the user's password that you just set up.  It should accept it.  You will now have to inform the user how to get to the master node.  Use `ec2din` from your local machine to figure out your master node's public IP address.  In our case it was `107.21.154.75`.  It is **not** the one that starts with `10.something`, which is the private IP (IP addresses 10.\*, and 192.168.\*, are reserved for local networks).  Then tell the user to add something like the following in their `.ssh/config` (but changing the host name and user-id):
+and then enter the user's password that you just set up.  It should accept it.  You will now have to inform the user how to get to the master node.  Use `ec2din` from your local machine to figure out your master node's public IP address.  In our case it was `107.21.154.75`.  It is **not** the one that starts with `10.something`, which is the private IP (IP address ranges 10.\*, and 192.168.\*, are reserved for local networks).  You can tell the user to add something like the following in their `.ssh/config` on their local machine (but changing the IP address and user-id to the relevant values):

     Host master
        HostName 107.21.154.75
@@ -60,7 +68,6 @@
 Then they should be able to just type `ssh master` to get there.  You'll have to give users instructions about where they should put data if they have large quantities of it, e.g. in /export/ instead of their home directory.

-
 Previous: [Attaching EBS storage](AttachingEBS)
 Next: [??] (??)
 Up: [Kluster Wiki](Home)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Povey</dc:creator><pubDate>Mon, 25 Mar 2013 18:46:06 -0000</pubDate><guid>https://sourceforge.netecac45079295538d61397ce3059bd965b8c05047</guid></item><item><title>WikiPage AddingUser modified by Daniel Povey</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,6 +1,8 @@
 ## Adding a user to the cluster

 You aren't going to run all your computations as root, so you will need at least one normal user on the cluster.  Because the user information is propagated via NIS, you only have to add the user on the master.  But you can't put the user information in the normal place, i.e. in /etc/passwd, because we made /var/yp/ypfiles/ the home of this information.  We did so in order to make it easier to share the same image between the NIS master and clients.  
+
+In order to add a user you have to be on `master`.  Either type `kl-sshmaster` from your local machine, or `ssh master` from one of the other machines.

 For non-system users and their groups we will start from user-id 1000.  This is both for traditional reasons and because NIS will with its default configuration only sync users with this value or greater userids.  Everyone on this cluster is a close collaborator, so we'll all put them in the same group, `users`.  Add the following line to the currently empty file /var/yp/ypfiles/group:

@@ -14,7 +16,7 @@

     dvader::1001:2000:Darth Vader, dvader@empire.gov:/home/dvader:/bin/bash

-You should also decide where to put the user's home directory.  It has to be somewhere that is exported via NFS.  I decided to put it on the directory /mnt/home1, on master.  So I added the following line to /var/yp/ypfiles/auto.home:
+This is assuming Darth Vader prefers bash as his shell-- since he is very old, this is not a sure bet, he might prefer a c-based shell such as tcsh.  But he can always change it later using the command `ypchsh` once his account is set up.  You should also decide where to put the user's home directory.  It has to be somewhere that is exported via NFS.  I decided to put it on the directory /mnt/home1, on master.  So I added the following line to /var/yp/ypfiles/auto.home:

     dpovey master:/mnt/home1/dpovey

@@ -58,5 +60,7 @@
 Then they should be able to just type `ssh master` to get there.  You'll have to give users instructions about where they should put data if they have large quantities of it, e.g. in /export/ instead of their home directory.

-Next: [Setting up your kluster config](SettingConfig)
+
+Previous: [Attaching EBS storage](AttachingEBS)
+Next: [??] (??)
 Up: [Kluster Wiki](Home)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Povey</dc:creator><pubDate>Mon, 25 Mar 2013 05:07:00 -0000</pubDate><guid>https://sourceforge.netff0654b24ef3fc26e07e47a44208d34fe6b64416</guid></item><item><title>WikiPage AddingUser modified by Daniel Povey</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -48,7 +48,7 @@
     touch foo; rm foo
     ssh master

-and then enter the user's password that you just set up.  It should accept it.  You will now have to inform the user how to get to the master node.  Use `ec2din` from your local machine to figure out your master node's public IP address.  In our case it was `107.21.154.75`.  It is **not** the one that starts with `10.something`, which is the private IP (IP addresses 10.*, and 192.168.*, are reserved for local networks).  Then tell the user to add something like the following in their `.ssh/config` (but changing the host name and user-id):
+and then enter the user's password that you just set up.  It should accept it.  You will now have to inform the user how to get to the master node.  Use `ec2din` from your local machine to figure out your master node's public IP address.  In our case it was `107.21.154.75`.  It is **not** the one that starts with `10.something`, which is the private IP (IP addresses 10.\*, and 192.168.\*, are reserved for local networks).  Then tell the user to add something like the following in their `.ssh/config` (but changing the host name and user-id):

     Host master
        HostName 107.21.154.75
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Povey</dc:creator><pubDate>Sun, 24 Mar 2013 02:43:06 -0000</pubDate><guid>https://sourceforge.net47c5eabb132471e9edee38f5c4a11d709f9455d2</guid></item><item><title>WikiPage AddingUser modified by Daniel Povey</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -50,10 +50,10 @@

 and then enter the user's password that you just set up.  It should accept it.  You will now have to inform the user how to get to the master node.  Use `ec2din` from your local machine to figure out your master node's public IP address.  In our case it was `107.21.154.75`.  It is **not** the one that starts with `10.something`, which is the private IP (IP addresses 10.*, and 192.168.*, are reserved for local networks).  Then tell the user to add something like the following in their `.ssh/config` (but changing the host name and user-id):

-Host master
-     HostName 107.21.154.75
-     ServerAliveInterval 60
-     User dpovey
+    Host master
+       HostName 107.21.154.75
+       ServerAliveInterval 60
+       User dpovey

 Then they should be able to just type `ssh master` to get there.  You'll have to give users instructions about where they should put data if they have large quantities of it, e.g. in /export/ instead of their home directory.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Povey</dc:creator><pubDate>Sun, 24 Mar 2013 00:21:34 -0000</pubDate><guid>https://sourceforge.net565b6b484d6f43ebd3dfe82698a7cd16701bff49</guid></item><item><title>WikiPage AddingUser modified by Daniel Povey</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,6 @@
-# Adding a User to the cluster
+## Adding a user to the cluster

-You aren't going to run all your scientific experiments as root, so you will need at least one normal user on the cluster.  Because the user information is propagated via NIS, you only have to add the user on the master.  But you can't put the user information in the normal place, i.e. in /etc/passwd, because we made /var/yp/ypfiles/ the home of this information.  We did so in order to make it easier to share the same image between the NIS master and clients.  
+You aren't going to run all your computations as root, so you will need at least one normal user on the cluster.  Because the user information is propagated via NIS, you only have to add the user on the master.  But you can't put the user information in the normal place, i.e. in /etc/passwd, because we made /var/yp/ypfiles/ the home of this information.  We did so in order to make it easier to share the same image between the NIS master and clients.  

 For non-system users and their groups we will start from user-id 1000.  This is both for traditional reasons and because NIS will with its default configuration only sync users with this value or greater userids.  Everyone on this cluster is a close collaborator, so we'll all put them in the same group, `users`.  Add the following line to the currently empty file /var/yp/ypfiles/group:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Povey</dc:creator><pubDate>Sun, 24 Mar 2013 00:16:54 -0000</pubDate><guid>https://sourceforge.net7bbc0e034c076354ac614a8588f3efa1cae06985</guid></item><item><title>WikiPage AddingUser modified by Daniel Povey</title><link>https://sourceforge.net/p/kluster/wiki/AddingUser/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="adding-a-user-to-the-cluster"&gt;Adding a User to the cluster&lt;/h1&gt;
&lt;p&gt;You aren't going to run all your scientific experiments as root, so you will need at least one normal user on the cluster.  Because the user information is propagated via NIS, you only have to add the user on the master.  But you can't put the user information in the normal place, i.e. in /etc/passwd, because we made /var/yp/ypfiles/ the home of this information.  We did so in order to make it easier to share the same image between the NIS master and clients.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;For non-system users and their groups we will start from user-id 1000.  This is both for traditional reasons and because NIS will with its default configuration only sync users with this value or greater userids.  Everyone on this cluster is a close collaborator, so we'll all put them in the same group, &lt;code&gt;users&lt;/code&gt;.  Add the following line to the currently empty file /var/yp/ypfiles/group:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;!&lt;span class="p"&gt;:&lt;/span&gt;2000&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I decided to start the GIDs from 2000 just to be different from the userids, to reduce confusion.  Now, suppose the user is &lt;code&gt;dpovey&lt;/code&gt;.  We'll add a line to the currently empty file /var/yp/ypfiles/passwd, reading something like the following:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;dpovey&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;1000&lt;span class="p"&gt;:&lt;/span&gt;2000&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;Daniel&lt;/span&gt; &lt;span class="n"&gt;Povey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dpovey&lt;/span&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;gmail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dpovey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bash&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The format is, &lt;code&gt;Username:Password-hash:Userid:Group-id:Name,Office:Homedir:Shell&lt;/code&gt;.  Next time you add a user you'll likely increment the user-id by one, e.g. you'll add a line like:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;dvader&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;1001&lt;span class="p"&gt;:&lt;/span&gt;2000&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;Darth&lt;/span&gt; &lt;span class="n"&gt;Vader&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dvader&lt;/span&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;empire&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gov&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dvader&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bash&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;You should also decide where to put the user's home directory.  It has to be somewhere that is exported via NFS.  I decided to put it on the directory /mnt/home1, on master.  So I added the following line to /var/yp/ypfiles/auto.home:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;dpovey&lt;/span&gt; &lt;span class="n"&gt;master&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mnt&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;home1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dpovey&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;At this point none of the changes you made in /var/yp/ypfiles will have propagated: if you type &lt;code&gt;id dpovey&lt;/code&gt; it will give an error, meaning the user does not exist, and if you do &lt;code&gt;ypcat -k auto.home&lt;/code&gt; the output is empty.  You have to do:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;var&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;yp&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;which will cause NIS to update its databases with the changed information.  The user will likely need a password.  Setting this is done with the program &lt;code&gt;yppasswd&lt;/code&gt; if you are using NIS.  This requires a root password to be set up, so just this first time, set up a root password using the command &lt;code&gt;passwd&lt;/code&gt;.  Next, change the password of the user, typing &lt;code&gt;yppasswd dpovey&lt;/code&gt;:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c"&gt;# yppasswd dpovey&lt;/span&gt;
&lt;span class="n"&gt;Changing&lt;/span&gt; &lt;span class="n"&gt;NIS&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt; &lt;span class="n"&gt;information&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;dpovey&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;master&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="n"&gt;Please&lt;/span&gt; &lt;span class="n"&gt;enter&lt;/span&gt; &lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="n"&gt;Changing&lt;/span&gt; &lt;span class="n"&gt;NIS&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;dpovey&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;master&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="n"&gt;Please&lt;/span&gt; &lt;span class="n"&gt;enter&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="n"&gt;Please&lt;/span&gt; &lt;span class="n"&gt;retype&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;

&lt;span class="n"&gt;The&lt;/span&gt; &lt;span class="n"&gt;NIS&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="n"&gt;has&lt;/span&gt; &lt;span class="n"&gt;been&lt;/span&gt; &lt;span class="n"&gt;changed&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;master&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Look carefully at the output: on failure it will say &lt;code&gt;The NIS password has not been changed&lt;/code&gt;, which superficially looks similar.  Next, you need to set up the user's home directory.  The &lt;code&gt;ssh&lt;/code&gt; part here is not really necessarily in our example since we're just ssh-ing to ourself, but if the home directory is on a different host it might be needed:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;ssh&lt;/span&gt; &lt;span class="n"&gt;master&lt;/span&gt; &lt;span class="n"&gt;cp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;skel&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mnt&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;home1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dpovey&lt;/span&gt;
&lt;span class="n"&gt;chown&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;R&lt;/span&gt; &lt;span class="n"&gt;dpovey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dpovey&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If the &lt;code&gt;chown&lt;/code&gt; command says something like &lt;code&gt;no such user&lt;/code&gt; then something went wrong setting or propagating the password or group information: check &lt;code&gt;/var/yp/ypfiles/password&lt;/code&gt; and &lt;code&gt;/var/yp/ypfiles/group&lt;/code&gt;, do &lt;code&gt;make&lt;/code&gt; in &lt;code&gt;/var/yp&lt;/code&gt;, again, and check the NIS maps with &lt;code&gt;ypcat -k passwd.byname&lt;/code&gt; and &lt;code&gt;ypcat -k group&lt;/code&gt;.  Also check that the files /etc/passwd and /etc/group have the crucial last lines with the "+", that pull in the NIS maps, and that your userid and group-id are no less than the MINUID and MINGID in /var/yp/Makefile. &lt;/p&gt;
&lt;p&gt;To check that the user was added correctly and everything is working, do as follows:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;su&lt;/span&gt; &lt;span class="n"&gt;dpovey&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt;
&lt;span class="n"&gt;touch&lt;/span&gt; &lt;span class="n"&gt;foo&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;rm&lt;/span&gt; &lt;span class="n"&gt;foo&lt;/span&gt;
&lt;span class="n"&gt;ssh&lt;/span&gt; &lt;span class="n"&gt;master&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and then enter the user's password that you just set up.  It should accept it.  You will now have to inform the user how to get to the master node.  Use &lt;code&gt;ec2din&lt;/code&gt; from your local machine to figure out your master node's public IP address.  In our case it was &lt;code&gt;107.21.154.75&lt;/code&gt;.  It is &lt;strong&gt;not&lt;/strong&gt; the one that starts with &lt;code&gt;10.something&lt;/code&gt;, which is the private IP (IP addresses 10.&lt;em&gt;, and 192.168.&lt;/em&gt;, are reserved for local networks).  Then tell the user to add something like the following in their &lt;code&gt;.ssh/config&lt;/code&gt; (but changing the host name and user-id):&lt;/p&gt;
&lt;p&gt;Host master&lt;br /&gt;
     HostName 107.21.154.75&lt;br /&gt;
     ServerAliveInterval 60&lt;br /&gt;
     User dpovey&lt;/p&gt;
&lt;p&gt;Then they should be able to just type &lt;code&gt;ssh master&lt;/code&gt; to get there.  You'll have to give users instructions about where they should put data if they have large quantities of it, e.g. in /export/ instead of their home directory.&lt;/p&gt;
&lt;p&gt;Next: &lt;a class="" href="SettingConfig"&gt;Setting up your kluster config&lt;/a&gt;&lt;br /&gt;
Up: &lt;a class="" href="/p/kluster/wiki/Home/"&gt;Kluster Wiki&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Povey</dc:creator><pubDate>Sat, 23 Mar 2013 22:00:07 -0000</pubDate><guid>https://sourceforge.netc3ae7456e1ccae9c79b8f5b21ba6045d726f69d0</guid></item></channel></rss>