On 05/13/2011 02:40 PM, nasir nasir wrote:
I was trying to see whether I could mount the NFS share manually. Thats why I tested the first step.

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.
Here is my requirement in one sentence:
*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.*

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.

Thanks and regards,

    What is it you are actually trying to do here, mount every single
    directory? To test automount I tended to do: cd /home/<someuser>. It
    should be automatically mounted.

    If your machine is configured to use IPA for identity then yes, it
    manages all users and groups (e.g. you used ipa-client-install).

    And you configured this to automatically create the homedirectory,
    right? I wonder if there is a conflict/race with that.

    This line apears to be ok. Does it work if you do cd
    /home/<someuser> ?


Freeipa-users mailing list

Reply via email to