<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 05/13/2011 02:40 PM, nasir nasir wrote:
    <blockquote cite="mid:545106.95513.qm@web161306.mail.bf1.yahoo.com"
      type="cite">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font: inherit;" valign="top">
              <div>I was trying to see whether I could mount the NFS
                share manually. Thats why I tested the first step.</div>
              <div><br>
              </div>
              <div>I have two machines configured now. One IPA server
                and the other one as IPA client(with --mkhomedir switch)
                configured as an NFS server too. Here the /xtra
                partition with a home subfolder is the NFS export. Now
                when I create a user in the IPA server, from where shall
                I try to login first ? from the IPA server or NFS server
                ? or do you want me to try from a different machine ? In
                that case, I will have to install IPA client on one more
                machine. Currently cd /home/<someuser> is saying
                "no such file or directory" from both these machines.</div>
              <div>Here is my requirement in one sentence:</div>
              <div><b><br>
                </b></div>
              <div><b>Whenever a newly created user is logged in from
                  any client machine,  a home folder should be created
                  in my NFS server under /xtra/home as
                  /xtra/home/$USERNAME and mounted to the client machine
                  she is logged in as her home folder.</b></div>
            </td>
          </tr>
        </tbody>
      </table>
    </blockquote>
    <br>
    The simplest solution is to remove the  'ldap' from the automount
    line in /etc/nsswitch.conf  on the NFS server (thanks Stephen
    Gallagher) but leave it on the other machines.  Then, install the
    ipa-client with the option to automatically create the home
    directory.  If you log in to the nfs server directly, it will be
    created on the (I'll assume ext4) local partition, if you log in to
    the client machine, it will create it in the /home partition
    automounted from the NFS server.  I'm not sure what odd jobs does,
    but I'd assume that it tests for the existinace of $HOME by doing
    some system call that should trigger the mount from the server, but
    I'm not certain that it does.  An alternative is to log in once on
    the nfsserver directly to create the users home directory, and then
    automount will work across the cluster.<br>
    <br>
    <br>
    <blockquote cite="mid:545106.95513.qm@web161306.mail.bf1.yahoo.com"
      type="cite">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font: inherit;" valign="top">
              <div><br>
              </div>
              <div><br>
              </div>
              <div>Thanks and regards,</div>
              <div>Nidal</div>
              <div><br>
              </div>
              <br>
              <blockquote style="border-left: 2px solid rgb(16, 16,
                255); margin-left: 5px; padding-left: 5px;">
                <div class="plainMail"><br>
                  What is it you are actually trying to do here, mount
                  every single /home <br>
                  directory? To test automount I tended to do: cd
                  /home/<someuser>. It <br>
                  should be automatically mounted.<br>
                  <br>
                  If your machine is configured to use IPA for identity
                  then yes, it <br>
                  manages all users and groups (e.g. you used
                  ipa-client-install).<br>
                  <br>
                  <br>
                  And you configured this to automatically create the
                  homedirectory, <br>
                  right? I wonder if there is a conflict/race with that.<br>
                  <br>
                  This line apears to be ok. Does it work if you do cd
                  /home/<someuser> ?<br>
                  <br>
                  rob</div>
              </blockquote>
            </td>
          </tr>
        </tbody>
      </table>
    </blockquote>
    <br>
  </body>
</html>