Sorry to answer my own post!
After trying out all the permutations and combinations of automountkey-add/del 
command, I figured out the following entry and it works for all the PRE CREATED 
home folders across all the machines except NFS server,
/etc/auto.home:*       -fstype=nfs4,rw,sec=krb5,soft,rsize=8192,wsize=8192 
hugayat.cohort.org:/&
With this entry, it gets automounted if I have the home folder present already 
in my NFS partition (i.e /xtra/home/XXX). It is not working when I try to login 
to NFS server. Instead it is creating a home folder on the fly under /home of 
NFS server. Is this what I can achieve maximum ? or can I have folders 
automatically created while login for the first time ? 
Thanks again for making me reach up to this point!
Regards,Nidal


  

    
    
  
  
    Lets try to isolate it a little further.  If you log in to that
    machine as root, and then do su - nasir, does it let you create the
    directory or give you the same error?  I'm guessing it is ssh that
    is complaining here.  If the mount point is set up correctly, you
    should be able to crete and chown the /home/nasir directory, either
    via odd job, or just test it as root.

    

    What I am guessing is happening here is that ssh is not triggereing
    the odd job creation of the home directory.  Either that, or this
    particular IPA client was run without the switch to create the
    home-dir.  If Automount is commented out, does the /home/nasir
    directory get created on the local disk?

    

    

    On 05/16/2011 09:19 PM, nasir nasir wrote:
    
      
        
          
            
              Thanks again!
              

              
              No! it allows auto mount that pre created home folder
                ONLY  to the NFS server. For e.g if I have /xtra/home/nasir
                alread created, then it automatically mounts  while
                login to NFS server ( ssh -l nasir NFS_SERVER ). But
                when I try to login as the same user to some other
                machine ( ssh -l nasir ANY_IPA_MACHINE) it gives the
                following error,
              

              
              
                [root@openipa ~]# ssh -l nasir 192.168.1.222 -X
                nasir@192.168.1.222's password: 
                Creating home directory for nasir.
                Last login: Tue May 17 04:06:43 2011 from
                    openipa.cohort.org
                Could not chdir to home directory /home/nasir:
                    No such file or directory
                -sh-4.1$ ls
              
              

              
              So it is not working right ? Hope it is clear to you
                now.
              

              
              Thanks and regards,
              Nidal
              

              
              

              
              

              
                
                  
                    
                      
                        
                          
                            If I manually create one home folder(
                              e.g /xtra/home/abc ) under than,
                              then I can mount it, but nothing can be
                              written to it by the user as it gives
                              permission denied error.
                          
                        
                      
                    
                  
                  

                  Yes, but it should allow the root user to create and
                  chown the directory, so the autocreation of home dirs
                  should work.

                  

                
                

                
              
            
          
        
      
    
    

  

_______________________________________________
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Reply via email to